Ticket #4184: patch-lib___init__.py
File patch-lib___init__.py, 384 bytes (added by ben@…, 19 years ago) |
---|
Line | |
---|---|
1 | --- lib/__init__.py.orig 2005-07-28 12:35:42.000000000 -0700 |
2 | +++ lib/__init__.py 2005-07-28 12:36:16.000000000 -0700 |
3 | @@ -177,7 +177,7 @@ |
4 | # went away |
5 | import os, sys |
6 | if (os.getcwd() == '/') and len(sys.argv): |
7 | - os.chdir(os.path.basedir(sys.argv[0])) |
8 | + os.chdir(os.path.dirname(sys.argv[0])) |
9 | return _init() |
10 | |
11 | #cleanup namespace |