Skip to content

Commit

Permalink
append map names to end of dem file
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabwth committed Dec 7, 2016
1 parent f84b0d5 commit 5104977
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@
shutil.copy(full_demo_path, original_demos_dir)


new_demo_name = map_name+"_"+demo_file.replace(path, '')
new_demo_name = demo_file\
.replace(path, '')\
.replace('.dem', '')\
+"_"+map_name+".dem"

print "Renaming "+demo_file+" -> "+new_demo_name

os.rename(full_demo_path, path+new_demo_name)

input("Done.")
raw_input("Done.")

0 comments on commit 5104977

Please sign in to comment.