update sys.path at cubicweb startup stable
authorAdministrator <>
Thu, 10 Dec 2009 11:35:40 -0800
branchstable
changeset 4096 871ff503c23e
parent 4095 72fd2d4cc782
child 4097 bc387c49e02b
child 4111 1fda1d356741
update sys.path at cubicweb startup
bin/cubicweb-ctl.bat
--- a/bin/cubicweb-ctl.bat	Thu Dec 10 09:43:51 2009 +0100
+++ b/bin/cubicweb-ctl.bat	Thu Dec 10 11:35:40 2009 -0800
@@ -7,8 +7,10 @@
  
 """
 # -------------------- Python section --------------------
+import sys
+from os.path import join, dirname
+sys.path.insert(0, join(dirname(__file__), '..', '..'))
 from cubicweb.cwctl import run
-import sys
 run(sys.argv[1:])
 
 DosExitLabel = """