Linking from None fix
- Shouldn't do the symbolic linking if link_from is None
diff --git a/common/staging_install.py b/common/staging_install.py
index db400a2..33358c7 100755
--- a/common/staging_install.py
+++ b/common/staging_install.py
@@ -418,7 +418,7 @@
# match (Note: This is done only for ngspice model files; other tool files are
# generally small and deemed unnecessary to make symbolic links).
- if link_from and link_from != 'source':
+ if link_from not in ['source', None]:
thispdk = os.path.split(targetdir)[1]
# Only create links for PDKs other than the one we are making links to.
@@ -485,7 +485,7 @@
# file "sources.txt" with the name of the source directories for each
# install directory.
- if link_from and link_from == 'source':
+ if link_from not in ['source', None]:
print('Replacing files with symbolic links to source where possible.')
for refdir in refdirs:
if ef_format: