Skip to content

Commit 4d8faca

Browse files
committed
Fix for last commit
1 parent 0826268 commit 4d8faca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resources/Scripts/package_custom_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def extractWithName(zip_path, output_dir, new_root_name):
9595
if os.path.exists(new_root_path):
9696
shutil.rmtree(new_root_path)
9797

98-
if len(top_level) == 1 and os.path.isdir(os.path.join(output_dir, list(top_level)[0])):
98+
if len(top_level) == 1 and not os.path.isfile(os.path.join(output_dir, list(top_level)[0])):
9999
# Case 1: Single folder at top level — rename it
100100
original_root = os.path.join(output_dir, list(top_level)[0])
101101
shutil.move(original_root, new_root_path)

0 commit comments

Comments
 (0)