Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor bug fix for cutax installation #84

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions utilix/batchq.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,12 @@ def submit_job(jobstring,
jobstring = singularity_wrap(jobstring, container, bind, partition)

# if you have exported INSTALL_CUTAX to be 1, then you do NOT need to unset CUTAX_LOCATION
if os.environ.get('INSTALL_CUTAX') == '1':
print("You have exported INSTALL_CUTAX to be 1, so I will unset it for you")
print("Your CUTAX_LOCATION is %s"%(os.environ.get('CUTAX_LOCATION')))
print("Your current CUTAX_LOCATION is %s"%(os.environ.get('CUTAX_LOCATION')))
if os.environ.get('INSTALL_CUTAX') != '1':
print("You have NOT exported INSTALL_CUTAX to be 1, so I will not unset CUTAX_LOCATION.")
jobstring = 'unset X509_CERT_DIR\n' + 'module load singularity\n' + jobstring
else:
print("You have NOT exported INSTALL_CUTAX to be 1, so I will unset CUTAX_LOCATION for you")
print("Your CUTAX_LOCATION is %s"%(os.environ.get('CUTAX_LOCATION')))
print("You have exported INSTALL_CUTAX to be 1, so I will unset CUTAX_LOCATION for you.")
jobstring = 'unset X509_CERT_DIR CUTAX_LOCATION\n' + 'module load singularity\n' + jobstring

if not hours is None:
Expand Down
Loading