Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
fix: shutil does not accept path objects on older Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
joelgomes1994 committed Apr 3, 2022
1 parent 3cc713a commit c2f88d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/scripts/build_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion release/scripts/build_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c2f88d0

Please sign in to comment.