Only chdir to the main path if there is one.
This commit is contained in:
parent
04de772cef
commit
ace983aac0
|
@ -24,7 +24,8 @@ def change_to_main_dir():
|
||||||
else:
|
else:
|
||||||
path = os.path.dirname( unicode( __file__, sys.getfilesystemencoding() ) )
|
path = os.path.dirname( unicode( __file__, sys.getfilesystemencoding() ) )
|
||||||
|
|
||||||
os.chdir( path )
|
if path:
|
||||||
|
os.chdir( path )
|
||||||
|
|
||||||
|
|
||||||
def main( args ):
|
def main( args ):
|
||||||
|
|
Reference in New Issue