parameters: ()
docstring: Returns the version and version_info.
          If the version.py file doesn't exist, the version of Bohrium API is returned.
          NB: If the version.py file doesn't exist, this function must be called after the call to `setup()`.
docstring_summary: Returns the version and version_info.
          If the version.py file doesn't exist, the version of Bohrium API is returned.
          NB: If the version.py file doesn't exist, this function must be called after the call to `setup()`.
docstring_tokens: Returns the version and version_info . If the version . py file doesn t exist the version of Bohrium API is returned . NB : If the version . py file doesn t exist this function must be called after the call to setup () .
function: def get_version():
      """Returns the version and version_info.
          If the version.py file doesn't exist, the version of Bohrium API is returned.
          NB: If the version.py file doesn't exist, this function must be called after the call to `setup()`.
      """
      ver_path = script_path("bh107", "version.py")
      if os.path.exists(ver_path):
          print("Getting version from version.py")
          # Loading `__version__` variable from the version file
          with open(ver_path, "r") as f:
              t=f.read()
              version = re.search("__version__\s*=\s*\"([^\"]*)\"",t).group(1);
              version_info = eval(re.search("__version_info__\s*=\s*(\([^\)]+\))",t).group(1));
              return (version, version_info)
      else:
          print("Getting version from bohrium_api")
          import bohrium_api
          return (bohrium_api.__version__, bohrium_api.__version_info__)
function_tokens: def get_version ( ) : ver_path = script_path ( "bh107" , "version.py" ) if os . path . exists ( ver_path ) : print ( "Getting version from version.py" ) # Loading `__version__` variable from the version file with open ( ver_path , "r" ) as f : t = f . read ( ) version = re . search ( "__version__\s*=\s*\"([^\"]*)\"" , t ) . group ( 1 ) version_info = eval ( re . search ( "__version_info__\s*=\s*(\([^\)]+\))" , t ) . group ( 1 ) ) return ( version , version_info ) else : print ( "Getting version from bohrium_api" ) import bohrium_api return ( bohrium_api . __version__ , bohrium_api . __version_info__ )