From fe9abdef6d1b577a6bf5e7990eb4978fa15c8152 Mon Sep 17 00:00:00 2001 From: calvin Date: Fri, 19 Nov 2004 20:08:27 +0000 Subject: [PATCH] make config paths absolute git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2022 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index fb3f7930..cb9c1705 100755 --- a/setup.py +++ b/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 # 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