Crossfire Server, Trunk
convertall.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # This Python script installs all guilds to their location.
3 import os
4 from optparse import OptionParser
5 parser = OptionParser()
6 parser.add_option("--local-copy",dest="local_copy",help="puts a copy of generated files in a templates/guild/<guildname>",default=False,action="store_true")
7 parser.add_option("--no-install-copy",dest="install_copy",help="installs a remote copy to the destination directory. If false, only configures the files for installation.",default=False,action="store_true")
8 
9 (options, args) = parser.parse_args()
10 local_copy = " --local-copy" if options.local_copy else ""
11 local_copy+=' --no-install-copy' if options.install_copy else ''
12 t=open('GuildLocations')
13 a=t.read()
14 t.close()
15 b=a.split('\n')
16 for c in b:
17  print c + local_copy
18  os.system('./convert.py '+c + local_copy)
CFBank.open
def open()
Definition: CFBank.py:70