2012-08-01 10:25:45 +00:00
|
|
|
import urllib
|
|
|
|
import zipfile
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2012-08-11 03:41:59 +00:00
|
|
|
if not len(sys.argv) >= 3:
|
2012-08-08 12:48:06 +00:00
|
|
|
print 'Invalid arguments, must supply mcp folder and fml folder: decompile.py <MCPFolder> <FMLFolder>'
|
2012-08-01 10:25:45 +00:00
|
|
|
else:
|
|
|
|
mcp_dir = os.path.abspath(sys.argv[1])
|
|
|
|
fml_dir = os.path.abspath(sys.argv[2])
|
2012-08-08 12:48:06 +00:00
|
|
|
dont_gen_conf = '-no_gen_conf' in sys.argv
|
2012-08-01 10:25:45 +00:00
|
|
|
|
|
|
|
sys.path.append(os.path.join(fml_dir, 'install'))
|
|
|
|
|
2012-08-02 07:51:51 +00:00
|
|
|
from fml import setup_fml, setup_mcp
|
2012-08-01 10:25:45 +00:00
|
|
|
|
2012-08-08 12:48:06 +00:00
|
|
|
setup_mcp(fml_dir, mcp_dir, dont_gen_conf)
|
2012-08-01 10:25:45 +00:00
|
|
|
setup_fml(fml_dir, mcp_dir)
|