Skip to content

Commit c4f3b29

Browse files
authored
Unrar tool not getting set properly under Linux
1 parent ddf7c8b commit c4f3b29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

comics/utils/comicfilehandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self):
1717
rarfile.UNRAR_TOOL = os.path.dirname(comics.__file__) + "/utils/unrar/unrar.exe"
1818
elif sys.platform == 'darwin': # Mac
1919
rarfile.UNRAR_TOOL = os.path.dirname(comics.__file__) + "/utils/unrar/unrar_mac"
20-
elif sys.platform == 'linux2': # Linux
20+
elif sys.platform == 'linux': # Linux
2121
rarfile.UNRAR_TOOL = os.path.dirname(comics.__file__) + "/utils/unrar/unrar-nonfree_ubuntu"
2222

2323

@@ -235,4 +235,4 @@ def get_extractor(self, comic_file):
235235
if ext == '.tar':
236236
e = tarfile.TarFile(comic_file)
237237

238-
return e
238+
return e

0 commit comments

Comments
 (0)