if packageDir.lower() in sitePackageDirGlobal.lower():
sitePackageDir = sitePackageDirGlobal
elif packageDir.lower() in sitePackageDirUser.lower():
sitePackageDir = sitePackageDirUser
The first test fails, and the second one succeeds, so the config script assumes the user dir is the correct one. BUT in reality this directory does not exist, whereas Iromlab got installed in the global dir! (Iromlab was installed by running pip in command prompt windows that was launched as local admin).
Results are same if config script is run as local admin.
Config script mistakenly assumes user site package directory instead of global one!
In this case:
Which is used here:
The first test fails, and the second one succeeds, so the config script assumes the user dir is the correct one. BUT in reality this directory does not exist, whereas Iromlab got installed in the global dir! (Iromlab was installed by running pip in command prompt windows that was launched as local admin).
Results are same if config script is run as local admin.