Commit 11302688 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.
Browse files

Removed hardcoded Python version. Parsed version from sys lib.

parent 12fa7995
......@@ -60,7 +60,9 @@ if __name__ == '__main__':
print("** Generating CAN FD register map")
print(80 * "*")
pythonAlias = "python3.5"
pythonVersion = sys.version.split('.')
pythonAlias = "python" + pythonVersion[0] + "." + pythonVersion[1]
print("\n Python version is: %s \n" % pythonAlias)
if (str_arg_to_bool(args.updVHDL)):
print("Generating CAN FD memory registers VHDL package...\n")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment