Browse Source

cwd = %cd%

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

8
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:

2
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__":

Loading…
Cancel
Save