Skip to content

Commit

Permalink
Revert "Revert "Support for local unrar installation through an envir…
Browse files Browse the repository at this point in the history
…onment variable.""

This reverts commit a281b5b.
  • Loading branch information
hmhrex committed Aug 2, 2017
1 parent 8b1c653 commit a8dc394
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comics/utils/comicfilehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class ComicFileHandler(object):

def __init__(self):
# Set the unrar tool based on filesystem
if sys.platform == 'win32': # Windows
if os.getenv('TENMA_UNRAR_PATH'):
rarfile.UNRAR_TOOL = os.getenv('TENMA_UNRAR_PATH')
elif sys.platform == 'win32': # Windows
rarfile.UNRAR_TOOL = os.path.dirname(comics.__file__) + "/utils/unrar/unrar.exe"
elif sys.platform == 'darwin': # Mac
rarfile.UNRAR_TOOL = os.path.dirname(comics.__file__) + "/utils/unrar/unrar_mac"
Expand Down

0 comments on commit a8dc394

Please sign in to comment.