Commit f9625ef3 authored by Lars Kruse's avatar Lars Kruse

use platform independent path separators

parent e3d8bccf
......@@ -35,8 +35,8 @@ import shutil
from pycam import VERSION
WINDOWS_START_SCRIPT = "scripts/pycam-loader.py"
DEFAULT_START_SCRIPT = "scripts/pycam"
WINDOWS_START_SCRIPT = os.path.join("scripts", "pycam-loader.py")
DEFAULT_START_SCRIPT = os.path.join("scripts", "pycam")
# we don't want to include the windows postinstall script in other installers
is_windows_installer = "bdist_wininst" in sys.argv or "bdist_msi" in sys.argv
......@@ -44,7 +44,8 @@ is_windows_installer = "bdist_wininst" in sys.argv or "bdist_msi" in sys.argv
if is_windows_installer:
shutil.copy2(os.path.join(BASE_DIR, DEFAULT_START_SCRIPT),
os.path.join(BASE_DIR, WINDOWS_START_SCRIPT))
PLATFORM_SCRIPTS = [WINDOWS_START_SCRIPT, "scripts/pycam_win32_postinstall.py"]
PLATFORM_SCRIPTS = [WINDOWS_START_SCRIPT,
os.path.join("scripts", "pycam_win32_postinstall.py")]
else:
PLATFORM_SCRIPTS = [DEFAULT_START_SCRIPT]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment