Move installer script to bin dir

This commit is contained in:
Orsiris de Jong 2023-01-28 18:07:45 +01:00
parent 10a8d9475c
commit 7e4330206f

View file

@ -17,9 +17,14 @@ import shutil
from distutils.dir_util import copy_tree from distutils.dir_util import copy_tree
from command_runner import command_runner from command_runner import command_runner
import ofunctions.logger_utils import ofunctions.logger_utils
# Insert parent dir as path se we get to use npbackup as package
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(__file__), "..")))
from npbackup.customization import PROGRAM_NAME, PROGRAM_DIRECTORY from npbackup.customization import PROGRAM_NAME, PROGRAM_DIRECTORY
from npbackup.path_helper import BASEDIR, CURRENT_DIR from npbackup.path_helper import BASEDIR, CURRENT_DIR
del sys.path[0]
_DEBUG = os.environ.get("_DEBUG", False) _DEBUG = os.environ.get("_DEBUG", False)
LOG_FILE = os.path.join(CURRENT_DIR, __intname__ + ".log") LOG_FILE = os.path.join(CURRENT_DIR, __intname__ + ".log")