-
Notifications
You must be signed in to change notification settings - Fork 128
Description
There are various from ... import statements in the ISIS_Powder units that rely on the mantid-scripts.pth file having been processed so that all of the scripts subdirectories (eg Diffraction, Engineering etc) are present on the sys path. These statements generate red highlights in PyCharm because the .pth file is only processed at run time whenever the mantid.simpleapi is imported:
This means there are various distracting errors highlighted by PyCharm and it also means that if you have a unit that doesn't contain import mantid.simpleapi
the from ... import statement will fail (even though the same statement works at run time in another unit)
If the module paths were extended with a Diffraction prefix (eg from Diffraction.isis_powder import X) I think the PyCharm warnings would go away and this would be a lot more transparent