rez.utils.py23

Custom py2/3 interoperability code.

Put any code here that deals with py2/3 interoperability, beyond simple cases that use (for eg) the six module.

rez.utils.py23.get_function_arg_names(func)[source]

Get names of a function’s args.

Gives full list of positional and keyword-only (py3 only) args.

rez.utils.py23.load_module_from_file(name, filepath)[source]

Load a python module from a sourcefile.

Parameters
  • name (str) – Module name.

  • filepath (str) – Python sourcefile.

Returns

Loaded module.

Return type

module