Commit
•
2abef40
1
Parent(s):
2039f5a
Update handler.py
Browse files- handler.py +3 -3
handler.py
CHANGED
@@ -28,7 +28,7 @@ MAX_FRAMES = 257
|
|
28 |
# this is only a temporary solution (famous last words)
|
29 |
def apply_dirty_hack_to_patch_file_extensions_and_bypass_filter(directory):
|
30 |
"""
|
31 |
-
Recursively rename all '.
|
32 |
|
33 |
Args:
|
34 |
directory (str): Path to the directory to process
|
@@ -39,11 +39,11 @@ def apply_dirty_hack_to_patch_file_extensions_and_bypass_filter(directory):
|
|
39 |
# Walk through directory and its subdirectories
|
40 |
for root, _, files in os.walk(directory):
|
41 |
for filename in files:
|
42 |
-
if filename.endswith('.
|
43 |
# Get full path of the file
|
44 |
old_path = os.path.join(root, filename)
|
45 |
# Create new filename by replacing the extension
|
46 |
-
new_filename = filename.replace('.
|
47 |
new_path = os.path.join(root, new_filename)
|
48 |
|
49 |
try:
|
|
|
28 |
# this is only a temporary solution (famous last words)
|
29 |
def apply_dirty_hack_to_patch_file_extensions_and_bypass_filter(directory):
|
30 |
"""
|
31 |
+
Recursively rename all '.wut' files to '.pth' in the given directory
|
32 |
|
33 |
Args:
|
34 |
directory (str): Path to the directory to process
|
|
|
39 |
# Walk through directory and its subdirectories
|
40 |
for root, _, files in os.walk(directory):
|
41 |
for filename in files:
|
42 |
+
if filename.endswith('.wut'):
|
43 |
# Get full path of the file
|
44 |
old_path = os.path.join(root, filename)
|
45 |
# Create new filename by replacing the extension
|
46 |
+
new_filename = filename.replace('.wut', '.pth')
|
47 |
new_path = os.path.join(root, new_filename)
|
48 |
|
49 |
try:
|