support for older python

This commit is contained in:
Martin Diehl 2020-06-03 14:03:39 +02:00
parent 9b04a45bbd
commit 18849c3a69
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ for sub_dir in ['pre','post']:
for the_file in the_dir.glob('*.py'):
src = the_dir/the_file
dst = bin_dir/Path(the_file.with_suffix('').name)
dst.unlink(True)
if dst.is_file(): dst.unlink() # dst.unlink(True) for Python >3.8
dst.symlink_to(src)