release.py
608 Bytes
import os
import sys
files = [
"commandhandler.py",
"inventoryhandler.py",
"main.py",
"mudserver.py",
"roomloader.py",
"utils.py",
"welcome.txt",
"wifiweb.py"
]
for f in os.listdir('help'):
files.append('help/' + f)
for f in os.listdir('rooms'):
files.append('rooms/' + f)
for f in os.listdir('inventory'):
files.append('inventory/' + f)
with open(filename, 'r', encoding='utf-8') as f:
pw = f.read()
with open('releasepw.conf', 'r')
password = sys.argv[1]
for file in files:
os.system("python webrepl\webrepl_cli.py -p {} {} 192.168.1.126:/{}".format(password, file, file))