mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Refactor PROGRAM_DIR -> APP_DIR
This commit is contained in:
parent
9d0097fa68
commit
32e0d7dba2
4 changed files with 18 additions and 18 deletions
|
@ -19,7 +19,7 @@ def extract(file_path, output_destination):
|
|||
core.logger.error("EXTRACTOR: Could not find 7-zip, Exiting")
|
||||
return False
|
||||
wscriptlocation = os.path.join(os.environ['WINDIR'], 'system32', 'wscript.exe')
|
||||
invislocation = os.path.join(core.PROGRAM_DIR, 'core', 'extractor', 'bin', 'invisible.vbs')
|
||||
invislocation = os.path.join(core.APP_ROOT, 'core', 'extractor', 'bin', 'invisible.vbs')
|
||||
cmd_7zip = [wscriptlocation, invislocation, str(core.SHOWEXTRACT), core.SEVENZIP, "x", "-y"]
|
||||
ext_7zip = [".rar", ".zip", ".tar.gz", "tgz", ".tar.bz2", ".tbz", ".tar.lzma", ".tlz", ".7z", ".xz"]
|
||||
extract_commands = dict.fromkeys(ext_7zip, cmd_7zip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue