Václav Šmejkal 60d8cbe3f2
added my python utils
I used this to make this project happen
2023-06-02 21:02:06 +02:00

15 lines
343 B
Python

import os
def main():
number = 1
for file in os.listdir(os.fsencode(".")):
filename = os.fsdecode(file)
if not filename.endswith(".py"):
os.rename(filename, str(number) + "." + filename.split(".")[1])
number += 1
#print(number)
if __name__ == "__main__":
main()