From 550b43aace03d9eff80009676f970ef0fb22f370 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Fri, 23 Nov 2018 19:38:39 -0600 Subject: [PATCH] cwd = %cd% --- ext_open/opener.py | 8 ++------ ext_open/update.py | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ext_open/opener.py b/ext_open/opener.py index 02dd97a..cf4cc7d 100644 --- a/ext_open/opener.py +++ b/ext_open/opener.py @@ -24,9 +24,7 @@ def standalone(path,params=[],windowless =False,cwd = None): path2windowless = os.path.join(ROOT,'windowless.vbs') params = list(map(os.path.expandvars,params)) if not cwd: - cwd = os.path.dirname(path) - if cwd == '': - cwd = os.getcwd() + cwd = os.getcwd() else: cwd = os.path.expandvars(cwd) if windowless: @@ -38,9 +36,7 @@ def standalone(path,params=[],windowless =False,cwd = None): def dependant(path,params=[],mode = 'execute',cwd = None): if not cwd: - cwd = os.path.dirname(path) - if cwd == '': - cwd = os.getcwd() + cwd = os.getcwd() params = list(map(os.path.expandvars,params)) ext = get_ext(path) if ext: diff --git a/ext_open/update.py b/ext_open/update.py index 813d70e..04f4697 100644 --- a/ext_open/update.py +++ b/ext_open/update.py @@ -8,7 +8,6 @@ import shlex import sqlite3 import subprocess import time -import traceback FORCE_ADMIN = not config.getboolean('global','no_admin',fallback=False) DB_PATH = config.getpath('global','db_path') @@ -97,7 +96,6 @@ def update(ext,do_update_mtimes): except Exception as e: set_updating(ext,ext_database,False) - input() raise e if __name__ == "__main__":