mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-04 07:00:23 +00:00
make config paths absolute
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2022 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
3831db9fba
commit
fe9abdef6d
1 changed files with 3 additions and 0 deletions
3
setup.py
3
setup.py
|
|
@ -60,6 +60,8 @@ def cnormpath (path):
|
|||
if win_compiling:
|
||||
# replace slashes with backslashes
|
||||
path = path.replace("/", "\\")
|
||||
if not os.path.isabs(path):
|
||||
path= os.path.join(sys.prefix, path)
|
||||
return path
|
||||
|
||||
|
||||
|
|
@ -83,6 +85,7 @@ class MyInstall (install, object):
|
|||
super(MyInstall, self).run()
|
||||
# we have to write a configuration file because we need the
|
||||
# <install_data> directory (and other stuff like author, url, ...)
|
||||
# all paths are made absolute by cnormpath()
|
||||
data = []
|
||||
for d in ['purelib', 'platlib', 'lib', 'headers', 'scripts', 'data']:
|
||||
attr = 'install_%s' % d
|
||||
|
|
|
|||
Loading…
Reference in a new issue