When I try to use the Python bridge in IDL 9.2, I get an error as soon as the IDL_DLM_PATH variable is set to a value other than the default.
In short, the embedded Python version cannot be loaded.
Everything works fine as long as IDL_DLM_PATH is not set.
I understand that this may be an internal IDL bug and that it will be fixed in IDL 9.3.
Until the new version is released, I’m using a workaround that involves switching the value of DLM_PATH before and after using the Python bridge.
Does anyone know of a better solution?
Alx.
Here my workaround:
path = "<IDL_DEFAULT>;+my_dlm_path"
pr = pref_get('IDL_DLM_PATH', /STRUCTURE)
if (pr.VALUE_EFFECTIVE eq '<IDL_DEFAULT>') $
then pref_set, 'IDL_DLM_PATH', path $
else pref_set, 'IDL_DLM_PATH', /DEFAULT
pref_commit, 'IDL_DLM_PATH'