mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Insert absolute path
This commit is contained in:
parent
76e8dbba46
commit
9ba1dc2925
3 changed files with 4 additions and 3 deletions
|
@ -5,7 +5,7 @@ from pathlib import Path
|
||||||
|
|
||||||
from shared import LOCAL_BIN, LOGS_DIR, install_latest_pipx, poetry_update
|
from shared import LOCAL_BIN, LOGS_DIR, install_latest_pipx, poetry_update
|
||||||
|
|
||||||
sys.path.insert(0, "..")
|
sys.path.insert(0, Path(__file__).parent.absolute())
|
||||||
from terminal_utils import run, step
|
from terminal_utils import run, step
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
# No relative imports allowed in this file to be able to run server_setup.py without packages
|
# No relative imports allowed in this file to be able to run server_setup.py without packages
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from shared import LOGS_DIR, REPO_DIR
|
from shared import LOGS_DIR, REPO_DIR
|
||||||
|
|
||||||
sys.path.insert(0, "..")
|
sys.path.insert(0, Path(__file__).parent.absolute())
|
||||||
from terminal_utils import run
|
from terminal_utils import run
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
sys.path.insert(0, "..")
|
sys.path.insert(0, Path(__file__).parent.absolute())
|
||||||
from terminal_utils import run
|
from terminal_utils import run
|
||||||
|
|
||||||
LOCAL_BIN = Path("/home/admin/.local/bin/")
|
LOCAL_BIN = Path("/home/admin/.local/bin/")
|
||||||
|
|
Loading…
Reference in a new issue