Skip to content

Instantly share code, notes, and snippets.

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