runtime's process cwd should now be the same as provided working dir, fixin permission problem on W7
authorEdouard Tisserant
Thu, 06 Oct 2011 22:39:05 +0200
changeset 622 885a224a35be
parent 621 a3ce93d63832
child 623 8cdb533c3c7a
child 626 2b9bd5dcf8d2
runtime's process cwd should now be the same as provided working dir, fixin permission problem on W7
Beremiz_service.py
--- a/Beremiz_service.py	Fri Sep 30 23:41:46 2011 +0200
+++ b/Beremiz_service.py	Thu Oct 06 22:39:05 2011 +0200
@@ -84,6 +84,7 @@
     sys.exit()
 elif len(argv) == 1:
     WorkingDir = argv[0]
+    os.chdir(WorkingDir)
 elif len(argv) == 0:
     WorkingDir = os.getcwd()
     argv=[WorkingDir]