fixed bug
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ from runner_script import RunnerScript
|
|||||||
load_dotenv()
|
load_dotenv()
|
||||||
config = ConfigParser()
|
config = ConfigParser()
|
||||||
config.read(Path(__file__).parent / 'defaults.ini')
|
config.read(Path(__file__).parent / 'defaults.ini')
|
||||||
REPO_DIR = config.get('fastapi', 'listen_ip')
|
REPO_DIR = config.get('main', 'repo_dir')
|
||||||
if 'DEV' in os.environ:
|
if 'DEV' in os.environ:
|
||||||
REPO_DIR = os.getenv('REPO_DIR', default=REPO_DIR)
|
REPO_DIR = os.getenv('REPO_DIR', default=REPO_DIR)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user