Project

General

Profile

An example of setting PYTHONPATH

  • The PYTHONPATH environment variable must point to the directory that contains the jobsub_submit.py, jobsub_q.py, etc commands described below. UPS/UPD will set this automatically, if you obtain the pre-built client tarball or obtain it from git you have to set this manually.
    An example of checking and setting PYTHONPATH manually:
    [dbox@fermicloud326 jobsub]$ echo $PYTHONPATH
    
    [dbox@fermicloud326 jobsub]$ ls
    client  doc           lib          packaging  test
    config  jobsub_tools  LICENSE.txt  server     ups_jobsub_client
    [dbox@fermicloud326 jobsub]$ ls client/
    ca-bundle.crt               jobsub_fetchlog.py  jobsub_rm.py
    constants.py                jobsub_history.py   jobsub_submit.py
    defaultServer.py            jobsub_hold.py      jobsubUtils.py
    __init__.py                 jobsub_q.py         logSupport.py
    jobsubClientCredentials.py  jobsub_release.py   requirements.txt
    jobsubClient.py             jobsub_remote.sh    subprocessSupport.py
    [dbox@fermicloud326 jobsub]$ export PYTHONPATH=`pwd`/client
    [dbox@fermicloud326 jobsub]$ echo $PYTHONPATH
    /cloud/login/dbox/git/jobsub/client