changeset 2810:61b6f2793aa9

Don't add a relative path to sys.path but an absolute path
author Ville-Pekka Vainio <vpivaini AT cs DOT helsinki DOT fi>
date Fri, 03 Aug 2007 00:50:37 +0300
parents 39a9b649d5d0
children 46dba22d0fdf
files MoinMoin/script/moin.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/moin.py	Sat Sep 08 23:09:38 2007 +0200
+++ b/MoinMoin/script/moin.py	Fri Aug 03 00:50:37 2007 +0300
@@ -19,7 +19,7 @@
     import sys, os
     # we use position 1 (not 0) to give a config dir inserted at 0 a chance
     # beware: we have a wikiconfig.py at the toplevel directory in the branch
-    sys.path.insert(1, os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir))
+    sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir)))
 
     run()