make a python script that will go through a certain folder and edit every single .lua…
Jump to turn (11)
- 1make a python script that will go through a certain folder and edit every single
- 2not REPLACE, I want it to add it those 5 lines at the start of the file
- 3it instantly closes itself and does nothing
- 4that doesnt solve the problem of it instantly closing after a single nanosecond
- 5File "C:\Users\tamer\Downloads\Schemacell Windows\SchemacellData\cells\amongus\s
- 6File "C:\Users\tamer\Downloads\Schemacell Windows\SchemacellData\cells\amongus\s
- 7File "C:\Users\tamer\Downloads\Schemacell Windows\SchemacellData\cells\amongus\s
- 8there is no issue with the quotes I fixed them on my own a billion times
- 9PS C:\Users\tamer\Downloads\Schemacell Windows\SchemacellData\cells\amongus> pyt
- 10File "C:\Users\tamer\Downloads\Schemacell Windows\SchemacellData\cells\amongus\s
- 11SyntaxError: unexpected character after line continuation character PS C:\Users\
- User
make a python script that will go through a certain folder and edit every single .lua file to have name = "Filename" id = "FILENAME" author = "Spamton" texture = "filename.png" updateIndex = 9000 Also make sure that name only has the first letter capitalized, ID has everything capitalized, and texture not be capitalized at all
- Assistant
Here is a Python script that accomplishes the task described:
python