Skip to content

Commit f189580

Browse files
committed
Fixed sys.path fixup
git-svn-id: http://svn.colorstudy.com/trunk/SQLObject@705 95a46c32-92d2-0310-94a5-8d71aeb3d4b3
1 parent a09fa63 commit f189580

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/sqlobject-admin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ except ImportError:
1111
updir = os.path.join(
1212
os.path.dirname(os.path.dirname(os.path.abspath(here))),
1313
'sqlobject')
14-
if sys.path.exists(updir):
15-
sys.path.insert(0, updir)
14+
if os.path.exists(updir):
15+
sys.path.insert(0, os.path.dirname(updir))
1616
else:
1717
print 'I cannot find the sqlobject module'
1818
print 'If SQLObject is installed, you may need to set $PYTHONPATH'

0 commit comments

Comments
 (0)