From ace983aac090ed45148830e4d2443c06a0018981 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 23 Aug 2008 14:58:57 -0700 Subject: [PATCH] Only chdir to the main path if there is one. --- luminotes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luminotes.py b/luminotes.py index efe8e80..8213379 100755 --- a/luminotes.py +++ b/luminotes.py @@ -24,7 +24,8 @@ def change_to_main_dir(): else: path = os.path.dirname( unicode( __file__, sys.getfilesystemencoding() ) ) - os.chdir( path ) + if path: + os.chdir( path ) def main( args ):