Need to know whether my script is running under 1.4.5 (or older) or 1.9.0 (or newer). How would I detect this as easily and reliable as possible? Currently using this piece of code found from older DiBo thread, but I recall it might be buggy in case there's ever PyS60 1.9.10?
...yep, old and new versions are not 100% compatible. Want to use more efficient python 2.5.2 routines, if possible, and rely on work-arounds only as last resourceCode:# Didn't work, some error... #if [int(x) for x in e32.pys60_version().split(" ").split(".")] > [1,4,5] if float(e32.pys60_version[:3]) >= 1.9: # PyS60 1.9.x sys.path.append('c:\\Data\\Python') sys.path.append('e:\\Data\\Python') else: # PyS60 1.4.5 sys.path.append('c:\\Python') sys.path.append('e:\\Python')
--jouni variating code