release.py
721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import os
import sys
files = [
"commandhandler.py",
"inventoryhandler.py",
"main.py",
"mobs.txt",
"spawner.txt",
"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)
for f in os.listdir('commands'):
files.append('commands/' + f)
for f in os.listdir('mobs'):
files.append('mobs/' + f)
with open('releasepw.conf', 'r', encoding='utf-8') as f:
password = f.read()
for file in files:
os.system("python webrepl\webrepl_cli.py -p {} {} 192.168.1.138:/{}".format(password, file, file))