Adding paths to the PYTHONPATH in a Jenkins Python Build Step
Append a path (Linux specific; use os.pathsep to make it OS agnostic) to $PATH.
I can never remember how to do this, so here is my little reminder.
import os,sys
cwd=os.getcwd()+"/some_module_directory"
sys.path+=[cwd]
No comments:
Post a Comment