init_venv: Check if file exists before symlinking.
This commit is contained in:
parent
1c22b9613b
commit
ea9c1de2ba
@ -105,6 +105,8 @@ def link_pyqt():
|
|||||||
for fn in files:
|
for fn in files:
|
||||||
source = os.path.join(sys_path, fn)
|
source = os.path.join(sys_path, fn)
|
||||||
link_name = os.path.join(venv_path, fn)
|
link_name = os.path.join(venv_path, fn)
|
||||||
|
if not os.path.exists(source):
|
||||||
|
raise FileNotFoundError(source)
|
||||||
print('{} -> {}'.format(source, link_name))
|
print('{} -> {}'.format(source, link_name))
|
||||||
os.symlink(source, link_name)
|
os.symlink(source, link_name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user