Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import shlex
- import subprocess
- replays_dir = 'D:\\werkstatt\\replays\\replays'
- mon = 'uniprof2\\x64_bin_Release\\monitor.exe'
- client_exe = 'd:\\werkstatt\\tanks\\testcore\\game\\bin\\client\\win32\\WorldofTanks_h.exe'
- for root, dirs, replays in os.walk(replays_dir):
- for replay in replays:
- if not replay.endswith('wotreplay'):
- continue
- cmd = 'uniprof2\\x64_bin_Release\\monitor.exe -c -s -l "%s.upl" ' \
- '"%s" "%s"' % (replay, client_exe, os.path.join(root, replay))
- subprocess.check_call(cmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement