This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from shutil import copyfile | |
print('---begin of the script---') | |
demo_path = os.path.join(os.getenv('APPDATA'), "Teeworlds\\demos\\auto") | |
demo_dest_path = "D:\\Games\\teeworlds\\demos_check" | |
demos_already_in_dest_path = [file for file in os.listdir(demo_dest_path) if file.endswith(".demo")] | |
print 'from: ' + demo_path |