diff --git a/release/scripts/build_data.py b/release/scripts/build_data.py index ef412cc..d8148fa 100644 --- a/release/scripts/build_data.py +++ b/release/scripts/build_data.py @@ -114,7 +114,7 @@ def __compileScripts(directory): _path = Path(path) if _path.name == "__pycache__": - shutil.rmtree(_path) + shutil.rmtree(_path.as_posix()) def _removeCompiledScripts(directory): diff --git a/release/scripts/build_release.py b/release/scripts/build_release.py index ecba102..ed2e5e0 100644 --- a/release/scripts/build_release.py +++ b/release/scripts/build_release.py @@ -84,7 +84,7 @@ def _performRelease(): print(" > Copying launcher script to:", releaseTargetLauncherPath / "launcher.py") shutil.copy2((launcherDir / "launcher.py").as_posix(), (releaseTargetLauncherPath / "launcher.py").as_posix()) print(" > Copying launcher config:", releaseTargetLauncherPath / "config.json") - shutil.copy2((data["ProjectFile"]).as_posix(), (releaseTargetLauncherPath / "config.json").as_posix()) + shutil.copy2(Path(data["ProjectFile"]).as_posix(), (releaseTargetLauncherPath / "config.json").as_posix()) launcherExecutable = None # type: Path