Skip to content

Main Module

James Lott edited this page Mar 10, 2018 · 2 revisions

[[TOC]]

Synopsis

import mkproject
asset_pack = mkproject.load('/path/to/pack')
mkproject.dump('/path/to/new/project', asset_pack)

mkproject.load

Spec

mkproject.load(location, loader_class=DirectoryLoader)

Description

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

Spec

mkproject.dump(location, pack, dumper_class=FSDumper)

Description

Dump the loaded asset pack pack to the external location location. Optionally override the default loader_class of FSDumper. Raises mkproject.DumperError on failure.

Clone this wiki locally