Package schrodinger :: Package utils :: Module env
[hide private]
[frames] | no frames]

Module env

Classes [hide private]
  swap_ld_library_path
Restore LD_LIBRARY_PATH to the value that it was when we first ran a toplevel script.
Functions [hide private]
 
append_path(env_dict, env_var, path)
Appends a path to env_var (defined as constants in schrodinger.utils.env) in the env_dict.
 
prepend_path(env_dict, env_var, path)
Appends a path to env_var (defined as constants in schrodinger.utils.env) We normalize the path argument.
 
needs_system_sqlite()
OS X Mavericks has some odd behavior and needs to use system sqlite.
Variables [hide private]
  DYLD_LIBRARY_PATH = 'DYLD_LIBRARY_PATH'
  ORIGINAL_LD_LIBRARY_PATH = 'ORIGINAL_LD_LIBRARY_PATH'
  LD_LIBRARY_PATH = 'LD_LIBRARY_PATH'
  PATH = 'PATH'
  PERL5LIB = 'PERL5LIB'
  __package__ = 'schrodinger.utils'
Function Details [hide private]

append_path(env_dict, env_var, path)

 

Appends a path to env_var (defined as constants in schrodinger.utils.env) in the env_dict. This uses the traditional path seperator. We normalize the path argument.

Parameters:
  • env_var, existing, environment, variable, (example - schrodinger.utils.env.PATH) @type env_var str

    @param path path to extend with @str str

prepend_path(env_dict, env_var, path)

 

Appends a path to env_var (defined as constants in schrodinger.utils.env) We normalize the path argument.

Parameters:
  • env_var, existing, environment, variable, (example - schrodinger.utils.env.PATH) @type env_var str

    @param path path to extend with @str str

needs_system_sqlite()

 

OS X Mavericks has some odd behavior and needs to use system sqlite. Currently checks for >= 10.9.