mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
fix ovelapping with argparser
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
__all__ = ["run_handler"]
|
||||
|
||||
import importlib
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
@@ -33,6 +34,8 @@ def import_from_string(import_str: str) -> Any:
|
||||
|
||||
|
||||
def run_handler(entry_point: str) -> None:
|
||||
os.environ["RUN_AS_ARGENTA_APPLICATION"] = "1"
|
||||
|
||||
if str(Path.cwd()) not in sys.path:
|
||||
sys.path.insert(0, str(Path.cwd()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user