Utility Functions

Utility functions for interacting with file system, shell, etc.

aflow.utility.load_module(modname, modpath, search_locs=None)[source]

Loads the module specification and returns it as a python object.

Parameters:
  • modname (str) – name that the module should be loaded under.
  • modpath (str) – full path to the code file in which the module is defined.
  • search_locs (str) – path to search for additional submodules.
aflow.utility.reporoot = '/Users/trunks/codes/aflow-dist'

The absolute path to the repo root on the local machine.