Skip to content

Commit 27f788b

Browse files
authored
Merge pull request #66 from Andretility/fix_setup
Added 0 to open('{}/lsf.conf'.... to prevent ValueError: zero length …
2 parents 0e88a4d + 86ff69c commit 27f788b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def is_keyvalue_defined(lsbatch_h_path):
5151
def set_gccflag_lsf_version():
5252
global gccflag_lsfversion
5353
_lsf_envdir = os.environ['LSF_ENVDIR']
54-
with open('{}/lsf.conf'.format(_lsf_envdir), 'r') as f:
54+
with open('{0}/lsf.conf'.format(_lsf_envdir), 'r') as f:
5555
_lsf_version = re.search('LSF_VERSION=(.*)', f.read()).group(1).strip()
5656
if _lsf_version == '10.1' :
5757
gccflag_lsfversion= '-DLSF_VERSION_101'

0 commit comments

Comments
 (0)