aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 1 insertions, 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)