Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

There is no guarantee that the Python version will not changestays the same. To get validate the current Python version in a log message, use the following extension script preferably on a one-item source:

Code Block
import sys
# assigns python version values to myPythonVersion variable
myPythonVersion = sys.version_info
# logging a message containing the values
log(str(myPythonVersion))
 
# returns a response in the Log Browser
# Normal: sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)

...

Warning

There is no guarantee that all items on this list are still available as the list evolve through time. To get a list of updated modules and their version in a log message, use the following extension script, preferably on a one-item source:

Code Block
languagepy
# imported to manage packages
import pip
# populating 'modules' variable with all values
modules = pip.get_installed_distributions()
# sorting values and populating 'modules_list'
modules_list = sorted(["%s, version %s)" % (i.key, i.version)
     for i in modules])
# logging a message with the formatted values
log(str(modules_list))

Some modules uses an older version to correspond the use of the Python version.

...