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