2013-02-24 11:04:43 -08:00
|
|
|
#!/usr/bin/env python
|
2017-12-21 06:19:45 -08:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if getattr(sys, 'frozen', False):
|
|
|
|
# we are running in a bundle
|
|
|
|
frozen = 'ever so'
|
|
|
|
bundle_dir = sys._MEIPASS
|
|
|
|
else:
|
|
|
|
# we are running in a normal Python environment
|
|
|
|
bundle_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
|
|
# setup libunrar
|
|
|
|
if not os.environ.get("UNRAR_LIB_PATH", None):
|
|
|
|
os.environ["UNRAR_LIB_PATH"] = bundle_dir + "/libunrar.so"
|
2015-02-13 15:08:07 -08:00
|
|
|
|
2013-02-14 16:23:54 -08:00
|
|
|
from comictaggerlib.main import ctmain
|
2013-02-06 17:12:49 -08:00
|
|
|
|
2013-02-14 16:23:54 -08:00
|
|
|
if __name__ == '__main__':
|
2015-02-12 14:57:46 -08:00
|
|
|
ctmain()
|