aboutsummaryrefslogtreecommitdiff
path: root/modules/paths_internal.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2024-02-17 08:54:06 +0300
committerGitHub <noreply@github.com>2024-02-17 08:54:06 +0300
commitd70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7 (patch)
tree6640cefa3dee82d75f998bfc578f88973a388476 /modules/paths_internal.py
parent4333ecc43fc6f91301a041702cac9cf7e16967ae (diff)
parent06ab10a1be812036605e1472f054228562ea08d9 (diff)
Merge pull request #14934 from AUTOMATIC1111/fix/normalize-cmd-arg-paths
Normalize command-line argument paths
Diffstat (limited to 'modules/paths_internal.py')
-rw-r--r--modules/paths_internal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/paths_internal.py b/modules/paths_internal.py
index b86ecd7f..2ed1392a 100644
--- a/modules/paths_internal.py
+++ b/modules/paths_internal.py
@@ -4,6 +4,10 @@ import argparse
import os
import sys
import shlex
+from pathlib import Path
+
+
+normalized_filepath = lambda filepath: str(Path(filepath).resolve())
commandline_args = os.environ.get('COMMANDLINE_ARGS', "")
sys.argv += shlex.split(commandline_args)