From 2f63d9bb802bbd5b1b70e94e5bc17ac21e31cfce Mon Sep 17 00:00:00 2001 From: rlacko Date: Wed, 29 Oct 2014 15:38:34 +0100 Subject: Fixed invalid path to python scripts folder when installing via setup.py install command --- setup.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 8cced555b..942cf644a 100644 --- a/setup.py +++ b/setup.py @@ -243,10 +243,7 @@ class pyside_install(_install): # for bdist_wininst to use) - in which case we must *not* run our # installer if not self.dry_run and not self.root: - if sys.platform == "win32": - filename = os.path.join(self.prefix, "Scripts", "pyside_postinstall.py") - else: - filename = os.path.join(self.prefix, "bin", "pyside_postinstall.py") + filename = os.path.join(self.install_scripts, "pyside_postinstall.py") if not os.path.isfile(filename): raise RuntimeError("Can't find '%s'" % (filename,)) print("Executing post install script '%s'..." % filename) -- cgit v1.2.3