@All
I need to check by c:version from python script, if we had some library equal or lower than version i need. Code should handle all subversions include something like xx.100, etc. I can do it all with some big code by using something like:
version_info = os.popen("c:version sys:Libs/mylib.library).read().strip().split()
And then compare first and second part, etc, but that all looks like a bit too much for such simple stuff , so i tried to do something simpler, like:
if ((os.path.exists("Sys:Libs/mylib.library")) and
(os.system("version >NIL: *>NIL: Sys:Libs/mylib.library 1 100) >= 0)):
print(we have library equal or lower 1.100)
else:
print("no library or greater than 1.100")
But this way not work.. Have anyone any idea ?
Edited by kas1e on 2024/11/23 7:55:44