Browse Source

cwd = %cd%

master
Raphael Roberts 7 years ago
parent
commit
550b43aace
  1. 4
      ext_open/opener.py
  2. 2
      ext_open/update.py

4
ext_open/opener.py

@ -24,8 +24,6 @@ def standalone(path,params=[],windowless =False,cwd = None):
path2windowless = os.path.join(ROOT,'windowless.vbs') path2windowless = os.path.join(ROOT,'windowless.vbs')
params = list(map(os.path.expandvars,params)) params = list(map(os.path.expandvars,params))
if not cwd: if not cwd:
cwd = os.path.dirname(path)
if cwd == '':
cwd = os.getcwd() cwd = os.getcwd()
else: else:
cwd = os.path.expandvars(cwd) cwd = os.path.expandvars(cwd)
@ -38,8 +36,6 @@ def standalone(path,params=[],windowless =False,cwd = None):
def dependant(path,params=[],mode = 'execute',cwd = None): def dependant(path,params=[],mode = 'execute',cwd = None):
if not cwd: if not cwd:
cwd = os.path.dirname(path)
if cwd == '':
cwd = os.getcwd() cwd = os.getcwd()
params = list(map(os.path.expandvars,params)) params = list(map(os.path.expandvars,params))
ext = get_ext(path) ext = get_ext(path)

2
ext_open/update.py

@ -8,7 +8,6 @@ import shlex
import sqlite3 import sqlite3
import subprocess import subprocess
import time import time
import traceback
FORCE_ADMIN = not config.getboolean('global','no_admin',fallback=False) FORCE_ADMIN = not config.getboolean('global','no_admin',fallback=False)
DB_PATH = config.getpath('global','db_path') DB_PATH = config.getpath('global','db_path')
@ -97,7 +96,6 @@ def update(ext,do_update_mtimes):
except Exception as e: except Exception as e:
set_updating(ext,ext_database,False) set_updating(ext,ext_database,False)
input()
raise e raise e
if __name__ == "__main__": if __name__ == "__main__":

Loading…
Cancel
Save