This time with python syntax maybe? Wheres ijwu ~_~
This commit is contained in:
parent
41ec57c82a
commit
4513d5b4ac
1 changed files with 2 additions and 2 deletions
|
|
@ -4,12 +4,12 @@ import os.path
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
def generate_release():
|
def generate_release():
|
||||||
zip = zipfile.ZipFile("tshock_release", "r")
|
zip = zipfile.ZipFile("tshock_release.zip", "r")
|
||||||
zip.extractall()
|
zip.extractall()
|
||||||
|
|
||||||
def generate_configs():
|
def generate_configs():
|
||||||
subprocess.call(['/usr/bin/mono', 'TerrariaServer.exe', '-dump'])
|
subprocess.call(['/usr/bin/mono', 'TerrariaServer.exe', '-dump'])
|
||||||
if (!os.path.isfile('ConfigDescriptions.txt') || !os.path.isfile('PermissionsDescriptions.txt') || !os.path.isfile('ServerSideConfigDescriptions.txt')):
|
if not os.path.isfile('ConfigDescriptions.txt') or not os.path.isfile('PermissionsDescriptions.txt') or not os.path.isfile('ServerSideConfigDescriptions.txt'):
|
||||||
raise CalledProcessError(1)
|
raise CalledProcessError(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue