support running from pyinstaller bin
This commit is contained in:
parent
fe33c3889c
commit
fae1070c73
|
@ -1,3 +1,3 @@
|
|||
from .cli import main
|
||||
from barkshark_web.cli import main
|
||||
|
||||
main()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
from izzylib.config import JsonConfig
|
||||
from izzylib.misc import get_current_user_info
|
||||
|
@ -6,7 +7,11 @@ from izzylib.object_base import ObjectBase
|
|||
from izzylib.path import Path
|
||||
|
||||
|
||||
scriptpath = Path(__file__).resolve().parent
|
||||
if getattr(sys, 'frozen', False):
|
||||
scriptpath = Path(sys._MEIPASS)
|
||||
|
||||
else:
|
||||
scriptpath = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def get_config(paths):
|
||||
|
|
Reference in a new issue