Browse files

Added django path for Windows.

  • Loading branch information...
1 parent 8d1504b commit d620a8d6121cf34d3b505f9c0e405fbd12aff48c @jautero committed Jun 12, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 limuweb/
@@ -1,4 +1,8 @@
#!/usr/bin/env python
+import sys,os
+if sys.platform=='win32':
+ basedir=os.environ.get("BASEDIR","C:\\limu")

tanelikaivola Jun 14, 2011

Improvement would be to set basedir to something based on file.

I don't know if I should utter this uglyness: os.path.abspath( os.path.join( os.path.dirname( os.path.realpath( file ) ), "..") )

+ sys.path.append(os.path.join(basedir,"submodules","django"))
from import execute_manager
import settings # Assumed to be in the same directory.

1 comment on commit d620a8d hacks are ok. This might be better if it was multiplatform also.

Please sign in to comment.