I am trying to write a Jython event script for the aftLoad event and one of issues i am running into is when i try and use os.path.join to build file paths I get the following error
NameError: global name 'os' is not defined
here is the snippet of code I am working with
import os
import shutil
### other stuff here ###
def copyAsiaFile(strPovLoc, strLoadID, strAsiaDatfile, strAsiaOutfile):
strAsiaFile = os.path.join(strOutboxPath, strAsiaDatfile)
strAsiaFileOut = os.path.join(strAsiaOutbox, strPovLoc, strAsiaOutfile)
try:
af = open(strAsiaFile)
fdmAPI.logInfo('Found ASIAPlAN Load file: %s' % (strAsiaDatfile))
fdmAPI.logInfo('Copying %s to %s' % (strAsiaDatfile, strAsiaOutfile))
shutil.copyfile(strAsiaFile, strAsiaFileOut)
fdmAPI.logInfo('Successfully moved: %s' % (strAsiaDatfile))
af.close
except Exception, e:
print e
has anyone run into this before? Also is FDMEE using the jython libraries in \Oracle\Middleware\odi\oracledi.sdk\lib\Lib ?