Skip to content

Handle more python types

nordugrid-arc-bot requested to merge python_versions into next

Begin arcbot message
This merge request is automatically copied from !1404 (merged) orginally made by @maikenp
End arcbot message

Related to !1376 (merged)

@waananen pointed out:

".".join(sys.version.split(".")[:2])

this works nicely if version is "x.y.z bla"

but not if version is "x.y bla"

so a simple change:

from: ".".join(sys.version.split(".")[:2]) to: ".".join(sys.version.split(" ")[0].split(".")[:2])

Merge request reports

Loading