Skip to content

Commit b29aac3

Browse files
authored
Merge pull request #447 from KhiopsML/backport-435-get-khiops-version-among-extra-info
Backport : fix the khiops version initialization independently of the OS
2 parents f568e5f + 910ddce commit b29aac3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

khiops/core/internals/runner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,10 @@ def _initialize_khiops_version(self):
952952

953953
# On success parse and save the version
954954
if return_code == 0:
955-
# Skip potential non-version lines (ex: Completed loading of file driver...)
956-
for line in stdout.split(os.linesep):
955+
# Skip potential non-version lines
956+
# (ex: Completed loading of file driver, debug info ...)
957+
for line in stdout.split("\n"):
958+
line = line.strip("\r") # remove Windows-specific Carriage-Return
957959
if line.startswith("Khiops"):
958960
khiops_version_str = line.rstrip().split(" ")[1]
959961
break

0 commit comments

Comments
 (0)