Skip to content

Commit 86ff69c

Browse files
authored
Added 0 to open('{}/lsf.conf'.... to prevent ValueError: zero length field name in format
[lsf-python-api]# python setup.py build Traceback (most recent call last): File "setup.py", line 81, in <module> set_gccflag_lsf_version() File "setup.py", line 54, in set_gccflag_lsf_version with open('{}/lsf.conf'.format(_lsf_envdir), 'r') as f: ValueError: zero length field name in format
1 parent 0e88a4d commit 86ff69c

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)