diff --git a/setup.py b/setup.py index c88b725f9..507dd32d0 100644 --- a/setup.py +++ b/setup.py @@ -487,8 +487,9 @@ def make_launch_script(self): launch_script = os.path.join(self.install_scripts, launch_script) python_exe = os.path.abspath(sys.executable) + site_packages_dir = sysconfig.get_path('purelib') pymol_file = self.unchroot( - os.path.join(self.install_libbase, "pymol", "__init__.py") + os.path.join(site_packages_dir, "pymol", "__init__.py") ) pymol_path = self.unchroot(self.pymol_path)