We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b1c653 commit a8dc394Copy full SHA for a8dc394
comics/utils/comicfilehandler.py
@@ -13,7 +13,9 @@ class ComicFileHandler(object):
13
14
def __init__(self):
15
# Set the unrar tool based on filesystem
16
- if sys.platform == 'win32': # Windows
+ if os.getenv('TENMA_UNRAR_PATH'):
17
+ rarfile.UNRAR_TOOL = os.getenv('TENMA_UNRAR_PATH')
18
+ elif sys.platform == 'win32': # Windows
19
rarfile.UNRAR_TOOL = os.path.dirname(comics.__file__) + "/utils/unrar/unrar.exe"
20
elif sys.platform == 'darwin': # Mac
21
rarfile.UNRAR_TOOL = os.path.dirname(comics.__file__) + "/utils/unrar/unrar_mac"
0 commit comments