mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-11 10:00:58 +00:00
updated
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@512 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
81a6a4d186
commit
e62a2c63bd
1 changed files with 7 additions and 7 deletions
14
setup.py
14
setup.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue