Take out extraneous characters from python version

This commit is contained in:
Brian Read 2025-01-11 11:29:50 +00:00
parent 9739f78b19
commit 9bfaa754e6

View File

@ -1043,7 +1043,8 @@ if __name__ == "__main__":
except pkg_resources.DistributionNotFound:
chameleon_version = "Version information not available"
python_version = sys.version
python_version = python_version[:8]
#python_version = python_version[:8]
python_version = re.match(r'^\d+\.\d+\.\d+',python_version).group(0); #Extract the version number
current_datetime = datetime.now()
formatted_datetime = current_datetime.strftime("%Y-%m-%d %H:%M")