The idea sounds good to me. However, I imagine it might prevent testing the code from the source directory prior to installation unless the search is modified.
If we don't install the project then setup.py does not patch PyMcaDataDir.py and we still have PYMCA_DATA_DIR = r'DATA_DIR_FROM_SETUP' which triggers the search.
I still think patching PyMcaDataDir.py with the defaultDataPath in setup.py can be removed. Hard-coding a relative path when installing/building a project is not a good idea imo.
Originally posted by @woutdenolf in #1198 (comment)
If we don't install the project then
setup.pydoes not patchPyMcaDataDir.pyand we still havePYMCA_DATA_DIR = r'DATA_DIR_FROM_SETUP'which triggers the search.I still think patching
PyMcaDataDir.pywith thedefaultDataPathinsetup.pycan be removed. Hard-coding a relative path when installing/building a project is not a good idea imo.Originally posted by @woutdenolf in #1198 (comment)