How to maintain growing pythonpath list in FDMEE?
Hi All,
I have created external custom modules so I can extend my FDMEE BefImport event script. By necessity, I have to add the folder path to the FDMEE pythonpath, and so I did. I have this in my BefImport script
import sys
c = ["C_ACTUALS","C_RATES","C_PERF_PLAN"]
loc = fdmContext["LOCNAME"]
tgt = "HFMAPP"
if loc in c:
# Add directory path to the custom modules
sys.path.append('//EPMSysD/Oracle/FDMEE/%s/data/scripts/event/custlib' % str(tgt))
fdmAPI.logInfo("FDMEE system path: '%s'" % sys.path)
# Call the custom import modules
etc...
When I look at the logs, though, I see that my python path is growing as they are being executed (see screenshot below). It's not causing errors, but is it good practice to "remove" the appended directory after in the BefImport script, i.e. sys.path.remove?