support for older python
This commit is contained in:
parent
9b04a45bbd
commit
18849c3a69
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue