Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 984d83e

Browse files
committed
setupext.py: prevent spurious newline in tkagg compilation command
1 parent aaef944 commit 984d83e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setupext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,11 +939,11 @@ def get_var(file, varname):
939939
result = p.communicate()[0]
940940
return result
941941

942-
tcl_lib_dir = get_var(tcl_config, 'TCL_LIB_SPEC').split()[0][2:]
943-
tcl_inc_dir = get_var(tcl_config, 'TCL_INCLUDE_SPEC')[2:]
942+
tcl_lib_dir = get_var(tcl_config, 'TCL_LIB_SPEC').split()[0][2:].strip()
943+
tcl_inc_dir = get_var(tcl_config, 'TCL_INCLUDE_SPEC')[2:].strip()
944944
tcl_lib = get_var(tcl_config, 'TCL_LIB_FLAG')[2:].strip()
945945

946-
tk_lib_dir = get_var(tk_config, 'TK_LIB_SPEC').split()[0][2:]
946+
tk_lib_dir = get_var(tk_config, 'TK_LIB_SPEC').split()[0][2:].strip()
947947
tk_inc_dir = get_var(tk_config, 'TK_INCLUDE_SPEC').strip()
948948
if tk_inc_dir == '':
949949
tk_inc_dir = tcl_inc_dir

0 commit comments

Comments
 (0)