Fix start script for win32
This commit is contained in:
1 parent
9dbec428f2
commit
e64430b89a
1 file changed
+7
-4
+7
-4
@@ -1,8 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
import sys, os
|
||||
DIR = os.path.abspath(os.path.normpath(os.path.join(__file__,
|
||||
'..', '..', 'tryton')))
|
||||
if os.path.isdir(DIR):
|
||||
sys.path.insert(0, os.path.dirname(DIR))
|
||||
try:
|
||||
DIR = os.path.abspath(os.path.normpath(os.path.join(__file__,
|
||||
'..', '..', 'tryton')))
|
||||
if os.path.isdir(DIR):
|
||||
sys.path.insert(0, os.path.dirname(DIR))
|
||||
except:
|
||||
pass
|
||||
import tryton
|
||||
tryton.TrytonClient().run()
|
||||
Reference in new issue
Block a user