From 824a513b4e95059e6f76f2f6a88aa01e9dccd166 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 14 Mar 2014 00:02:37 +0100 Subject: m bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/__main__.py') diff --git a/src/__main__.py b/src/__main__.py index 5a9fcbb..a2d25ec 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -25,7 +25,7 @@ from argparser import * PROGRAM_NAME = 'blueshift' -PROGRAM_VERSION = '1.10' +PROGRAM_VERSION = '1.9' ## Set global variables @@ -417,10 +417,10 @@ else: else: file = None break - if file.startswith('$~'): - import pwd - file = pwd.getpwuid(os.getuid()).pw_dir + file[2:] if file is not None: + if file.startswith('$~'): + import pwd + file = pwd.getpwuid(os.getuid()).pw_dir + file[2:] file = file.replace('\0', '$') if os.path.exists(file): config_file = file -- cgit v1.2.3-70-g09d2