Fix guild template scripts with Python 3
parent
3d20a7dd92
commit
a539289411
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/python
|
#! /usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# This script generates the various files for a guild, and installs them
|
# This script generates the various files for a guild, and installs them
|
||||||
|
@ -64,4 +64,4 @@ for i in filelist:
|
||||||
if Ctl==1:
|
if Ctl==1:
|
||||||
secondtofile=open('../../'+ToFolder+"/"+i,'w')
|
secondtofile=open('../../'+ToFolder+"/"+i,'w')
|
||||||
secondtofile.write(filecontents)
|
secondtofile.write(filecontents)
|
||||||
secondtofile.close()
|
secondtofile.close()
|
||||||
|
|
|
@ -14,5 +14,5 @@ a=t.read()
|
||||||
t.close()
|
t.close()
|
||||||
b=a.split('\n')
|
b=a.split('\n')
|
||||||
for c in b:
|
for c in b:
|
||||||
print c + local_copy
|
print(c + local_copy)
|
||||||
os.system('./convert.py '+c + local_copy)
|
os.system('./convert.py '+c + local_copy)
|
||||||
|
|
Loading…
Reference in New Issue