mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 06:25:17 +08:00
Move installer script to bin dir
This commit is contained in:
parent
10a8d9475c
commit
7e4330206f
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
Loading…
Reference in a new issue