18 lines
627 B
Python
18 lines
627 B
Python
|
from modmanager import *
|
||
|
|
||
|
# Create cleaner
|
||
|
cleaner = ModManager("working_directory")
|
||
|
|
||
|
# Run on existing mod
|
||
|
# Parameters
|
||
|
# location: path to the archive
|
||
|
# title: the human readable name of the mod
|
||
|
# name: the mod namespace
|
||
|
# (optional) desc: the description to go in description.txt
|
||
|
# (optional) image: the path to the mod image to be copied to screenshot.png
|
||
|
res = cleaner.run("food.zip","Food Mod","food","This is the food mod","")
|
||
|
# return path to new archive
|
||
|
|
||
|
# The same, but gets from github instead of location
|
||
|
res = mm.githubGet("https://github.com/rubenwardy/awards","Achievements","awards","This is the award mod","")
|