Hyperion Financial Data Quality Management (FDM/FDMEE) (MOSC)

MOSC Banner

How to maintain growing pythonpath list in FDMEE?

edited Sep 28, 2016 10:20PM in Hyperion Financial Data Quality Management (FDM/FDMEE) (MOSC) 4 commentsAnswered ✓

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?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center