diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-17 05:54:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 05:54:06 +0000 |
commit | d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7 (patch) | |
tree | 6640cefa3dee82d75f998bfc578f88973a388476 /modules/paths_internal.py | |
parent | 4333ecc43fc6f91301a041702cac9cf7e16967ae (diff) | |
parent | 06ab10a1be812036605e1472f054228562ea08d9 (diff) | |
download | stable-diffusion-webui-gfx803-d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7.tar.gz stable-diffusion-webui-gfx803-d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7.tar.bz2 stable-diffusion-webui-gfx803-d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7.zip |
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.py | 4 |
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)
|