git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@512 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2002-09-07 12:33:20 +00:00
parent 81a6a4d186
commit e62a2c63bd

View file

@ -36,8 +36,8 @@ def get_nt_desktop_path (default=""):
return os.path.join(os.environ["USERPROFILE"], "Desktop")
return default
class MyInstall(install):
def run(self):
class MyInstall (install):
def run (self):
install.run(self)
# we have to write a configuration file because we need the
# <install_data>/share/locale directory (and other stuff
@ -89,12 +89,12 @@ class MyInstall(install):
print " %s: %s" % (opt_name, val)
class MyDistribution(Distribution):
def __init__(self, attrs=None):
class MyDistribution (Distribution):
def __init__ (self, attrs=None):
Distribution.__init__(self, attrs=attrs)
self.config_file = "_"+self.get_name()+"_configdata.py"
def run_commands(self):
def run_commands (self):
cwd = os.getcwd()
data = []
data.append('config_dir = %s' % `os.path.join(cwd, "config")`)
@ -102,7 +102,7 @@ class MyDistribution(Distribution):
self.create_conf_file("", data)
Distribution.run_commands(self)
def create_conf_file(self, directory, data=[]):
def create_conf_file (self, directory, data=[]):
data.insert(0, "# this file is automatically created by setup.py")
if not directory:
directory = os.getcwd()
@ -121,7 +121,7 @@ class MyDistribution(Distribution):
util.execute(write_file, (filename, data),
"creating %s" % filename, self.verbose>=1, self.dry_run)
def create_file(self, filename, data):
def create_file (self, filename, data):
# write the file
util.execute(write_file, (filename, data),
"creating %s" % filename, self.verbose>=1, self.dry_run)