support running from pyinstaller bin

This commit is contained in:
Izalia Mae 2022-11-22 19:12:52 -05:00
parent fe33c3889c
commit fae1070c73
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,3 @@
from .cli import main
from barkshark_web.cli import main
main()

View file

@ -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):