Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 5d347909 authored by g4m4's avatar g4m4
Browse files

[SCRIPTS] Fix python3

parent bdfee95f
No related branches found
No related tags found
No related merge requests found
Pipeline #47586 passed
......@@ -65,8 +65,7 @@ def ScanFileAndRename(filepath, name, name_lower, name_upper):
'''
name_short = name_upper[:4]
current_file = open(filepath, 'r+')
temp_renamed = string.replace(current_file.read(),
"SandBox", name).replace("sandbox", name_lower).replace("SANDBOX", name_upper).replace("SAND", name_short)
temp_renamed = current_file.read().replace("SandBox", name).replace("sandbox", name_lower).replace("SANDBOX", name_upper).replace("SAND", name_short)
# Empty current file content and replace it
current_file.seek(0)
current_file.truncate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment