aboutsummaryrefslogtreecommitdiff
path: root/modules/paths_internal.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-05-12 22:33:21 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-05-12 22:33:21 +0900
commit681c16dd1e911bdf831b031b0f31aaba41c280f8 (patch)
tree52f59bddc59f29ff35cab4e9da1370ac09470b4b /modules/paths_internal.py
parentabe32cefa39dee36d7f661d4e63c28ea8dd60c4f (diff)
fix --data-dir for COMMANDLINE_ARGS
move reading of COMMANDLINE_ARGS into paths_internal.py so --data-dir can be properly read
Diffstat (limited to 'modules/paths_internal.py')
-rw-r--r--modules/paths_internal.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/paths_internal.py b/modules/paths_internal.py
index a23f6d70..005a9b0a 100644
--- a/modules/paths_internal.py
+++ b/modules/paths_internal.py
@@ -2,6 +2,11 @@
import argparse
import os
+import sys
+import shlex
+
+commandline_args = os.environ.get('COMMANDLINE_ARGS', "")
+sys.argv += shlex.split(commandline_args)
modules_path = os.path.dirname(os.path.realpath(__file__))
script_path = os.path.dirname(modules_path)