Hello,
I'm new to FME and I'm trying to write a PythonCaller in a Custom Transformer. I have a working standalone python program that uses the following code to load a DLL:
SourceFolder = os.path.dirname(__file__)
giqdll = WinDLL(os.path.join(SourceFolder, "LibGIQ.dll"))
When I try to use this in my PythonCaller I get the following error:
Python Exception <NameError>: global name '__file__' is not defined
Is there an FME way of finding the full path of the fmx file?
Thanks,
Paul Michell