Skip to content

Commit

Permalink
Merge pull request #66 from Andretility/fix_setup
Browse files Browse the repository at this point in the history
Added 0 to open('{}/lsf.conf'.... to prevent ValueError: zero length …
  • Loading branch information
liyancn authored Mar 7, 2024
2 parents 0e88a4d + 86ff69c commit 27f788b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def is_keyvalue_defined(lsbatch_h_path):
def set_gccflag_lsf_version():
global gccflag_lsfversion
_lsf_envdir = os.environ['LSF_ENVDIR']
with open('{}/lsf.conf'.format(_lsf_envdir), 'r') as f:
with open('{0}/lsf.conf'.format(_lsf_envdir), 'r') as f:
_lsf_version = re.search('LSF_VERSION=(.*)', f.read()).group(1).strip()
if _lsf_version == '10.1' :
gccflag_lsfversion= '-DLSF_VERSION_101'
Expand Down

0 comments on commit 27f788b

Please sign in to comment.