I have set environment variable which I am able to access in terminal. But in workbench. Is there any setting need to access this variable ? Trying to access using
os.environ.get('FME_LOCAL_OUTPUT')
This is python startup script where some logging activity is doing.
This is working in FME server. Same thing am trying to replicate on local machine.
Log of error :
Starting translation...
('printing path', None)
Traceback (most recent call last):
File "<string>", line 19, in MF_Include_161192722330
File "<string>", line 6, in ParamFunc
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 70, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
INCLUDE -- failed to evaluate Python script `def ParamFunc():
import os, time, re
temp_output_path = os.environ.get('FME_LOCAL_OUTPUT')
print("printing path", temp_output_path)