-
Notifications
You must be signed in to change notification settings - Fork 0
Main Module
James Lott edited this page Mar 10, 2018
·
2 revisions
import mkproject
asset_pack = mkproject.load('/path/to/pack')
mkproject.dump('/path/to/new/project', asset_pack)mkproject.load(location, loader_class=DirectoryLoader)Fetch an asset pack from the external location location and load its contents into an AssetPack,
returning the loaded AssetPack as a result. Optionally override the default loader_class of DirectoryLoader. Raises mkproject.LoaderError on failure.
mkproject.dump(location, pack, dumper_class=FSDumper)Dump the loaded asset pack pack to the external location location. Optionally override the default loader_class of FSDumper. Raises mkproject.DumperError on failure.