mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
quick fix
This commit is contained in:
parent
d0d3437ef9
commit
4a6f7372cc
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@ import logging
|
||||||
|
|
||||||
Logger = logging.getLogger(__name__)
|
Logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
# which() breaks when running in Transmission (has to do with os.environ["PATH"])
|
||||||
def which(program):
|
def which(program):
|
||||||
# Author Credit: Jay @ http://stackoverflow.com/a/377028
|
# Author Credit: Jay @ http://stackoverflow.com/a/377028
|
||||||
import os
|
|
||||||
def is_exe(fpath):
|
def is_exe(fpath):
|
||||||
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
|
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ def extract(dirpath, file, outputDestination):
|
||||||
log.error("EXTRACTOR: %s not found, disabling support for %s", cmd, k)
|
log.error("EXTRACTOR: %s not found, disabling support for %s", cmd, k)
|
||||||
del EXTRACT_COMMANDS[k]
|
del EXTRACT_COMMANDS[k]
|
||||||
if not EXTRACT_COMMANDS:
|
if not EXTRACT_COMMANDS:
|
||||||
raise Exception("EXTRACTOR: No archive extracting programs found, plugin will be disabled")
|
Logger.warn("EXTRACTOR: No archive extracting programs found, plugin will be disabled")
|
||||||
|
|
||||||
ext = os.path.splitext(file)
|
ext = os.path.splitext(file)
|
||||||
filePath = os.path.join(dirpath, file)
|
filePath = os.path.join(dirpath, file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue