Copy over some needed files for debugging.
This commit is contained in:
parent
b644696668
commit
1860885fee
17
setup.py
17
setup.py
|
@ -69,6 +69,23 @@ def setup_fml(mcp_dir, fml_dir, build_num=0):
|
||||||
from fml import finish_setup_fml
|
from fml import finish_setup_fml
|
||||||
finish_setup_fml(fml_dir, mcp_dir)
|
finish_setup_fml(fml_dir, mcp_dir)
|
||||||
|
|
||||||
|
print('Copy resources:')
|
||||||
|
for file in os.listdir(os.path.join(fml_dir, 'client')):
|
||||||
|
if os.path.isfile(file) and not os.path.splitext(file)[1] == '.java':
|
||||||
|
base = os.path.basename(file)
|
||||||
|
print(' fml/client/' + base)
|
||||||
|
shutil.copy(file, os.path.join(mcp_dir, 'src', base))
|
||||||
|
|
||||||
|
for file in os.listdir(os.path.join(fml_dir, 'common')):
|
||||||
|
if os.path.isfile(file) and not os.path.splitext(file)[1] == '.java':
|
||||||
|
base = os.path.basename(file)
|
||||||
|
print(' fml/common/' + base)
|
||||||
|
shutil.copy(file, os.path.join(mcp_dir, 'src', base))
|
||||||
|
|
||||||
|
name = 'fmlversion.properties'
|
||||||
|
print(' ' + name)
|
||||||
|
shutil.copy(os.path.join(fml_dir, name), os.path.join(mcp_dir, 'src', name))
|
||||||
|
|
||||||
def run_command(command, cwd='.', verbose=True):
|
def run_command(command, cwd='.', verbose=True):
|
||||||
print('Running command: ')
|
print('Running command: ')
|
||||||
print(pformat(command))
|
print(pformat(command))
|
||||||
|
|
Loading…
Reference in New Issue