ForgePatch/fml/applypatches.py

15 lines
386 B
Python
Raw Normal View History

import os, sys
2012-03-31 00:38:31 +00:00
def main():
fml_dir = os.path.abspath(sys.argv[1])
work_dir = os.path.normpath(sys.argv[2])
mcp_dir = os.path.normpath(sys.argv[3])
sys.path.append(os.path.join(fml_dir, 'install'))
from fml import apply_fml_patches
apply_fml_patches(fml_dir, mcp_dir, work_dir, False)
2012-03-31 00:38:31 +00:00
if __name__ == '__main__':
main()