| import subprocess | |
| import shutil | |
| import os | |
| dir_name = 'PMLDL-Project' | |
| # if os.path.exists(dir_name): | |
| # shutil.rmtree(dir_name) | |
| subprocess.run(['git', 'clone', '-b', 'dev', 'https://github.com/Sambura/PMLDL-Project']) | |
| shutil.move(dir_name + '/DnD.py', './DnD.py') | |
| shutil.move(dir_name + '/src', './src') | |
| shutil.move(dir_name + '/Tokens', './Tokens') | |
| shutil.move(dir_name + '/agents', './agents') | |
| exec(open('./DnD.py').read()) | |