Skip to content

Commit 1119725

Browse files
committed
Fix passing argument to python tool
1 parent 3c1b169 commit 1119725

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/tools/ArchivePythonStdlib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def make_archive(file, directory, verbose=False):
8383
]
8484

8585
if args.exclude_patterns:
86-
custom_patterns = [x.strip() for x in args.exclude_patterns.split(";")]
86+
custom_patterns = [x.strip() for x in args.exclude_patterns.replace('"', '').split(";")]
8787
base_patterns += custom_patterns
8888

8989
ignored_files = shutil.ignore_patterns(*base_patterns)
@@ -94,7 +94,6 @@ def make_archive(file, directory, verbose=False):
9494

9595
print(f"copying library from {base_python} to {final_location}...")
9696
if os.name == "nt":
97-
(final_location / "Lib").mkdir(parents=True, exist_ok=True)
9897
shutil.copytree(base_python / "Lib", final_location, ignore=ignored_files, dirs_exist_ok=True)
9998
shutil.copytree(base_python / "DLLs", final_location, ignore=ignored_files, dirs_exist_ok=True)
10099
else:

0 commit comments

Comments
 (0)