mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +00:00
cargo_wrapper.py: added python3 version check for right usage of shutil.move(..)
This commit is contained in:
parent
ab01fc6143
commit
f327053811
1 changed files with 6 additions and 1 deletions
|
@ -135,4 +135,9 @@ if __name__ == "__main__":
|
|||
dest = uninstalled / P(f).name
|
||||
if dest.exists():
|
||||
dest.unlink()
|
||||
shutil.move(f, uninstalled)
|
||||
# move() takes paths from Python3.9 on
|
||||
if ((sys.version_info.major >= 3) and (sys.version_info.minor >= 9)):
|
||||
shutil.move(f, uninstalled)
|
||||
else:
|
||||
shutil.move(str(f), str(uninstalled))
|
||||
|
||||
|
|
Loading…
Reference in a new issue