Hello Alteryx/Python guru's...
This is my first post so please don't roast me
Here is the question applicable to Alteryx 2018.3:
In my company, there is an internally developed tool which has a python interface as an option and is installed in a standalone directory. I am looking to use Alteryx Python to call functions within the internally developed tool. Here is what needs to be impeded in the beginning of the script:
What do I need to modify here to run the script through Alteryx?
All the help is appreciated. Thank you.
Note: please change the environment variable PATH (LD_LIBRARY_PATH for Unix/Linux) and PYTHONPATH to include the extracted directory (DBADIR).
This will allow your Python code to be resided in any directory and still use the correct library.
You can also include the following code at the beginning of your Python Script:
import sys import os.path if sys.platform[:3] == "sun" or sys.platform[:5] == "linux": newDirs = os.path.expandvars("$LD_LIBRARY_PATH"); for loop in newDirs.split(":"): sys.path.append(loop) else: newDirs = os.path.expandvars("$PATH"); for loop in newDirs.split(";"): sys.path.append(loop) |