diff options
author | crupest <crupest@outlook.com> | 2018-11-13 17:12:03 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-13 17:12:03 +0800 |
commit | 97c35edea2ca67a06ba66f124b94ea62f0519def (patch) | |
tree | c3b5fc6afeb4dad0de65212d1dae38940706a58a /scripts/merge.py | |
parent | e158fcb47ea6a7bd9172d0751e38265b61d6c88c (diff) | |
download | cru-97c35edea2ca67a06ba66f124b94ea62f0519def.tar.gz cru-97c35edea2ca67a06ba66f124b94ea62f0519def.tar.bz2 cru-97c35edea2ca67a06ba66f124b94ea62f0519def.zip |
Update scripts.
Diffstat (limited to 'scripts/merge.py')
-rw-r--r-- | scripts/merge.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/merge.py b/scripts/merge.py new file mode 100644 index 00000000..250dfecb --- /dev/null +++ b/scripts/merge.py @@ -0,0 +1,13 @@ +import os +import os.path + +script_dir = os.path.dirname(os.path.realpath(__file__)) + +tool_path =os.path.relpath(os.path.join(script_dir, '../tools/cppmerge/main.py')) +input_dir = os.path.relpath(os.path.join(script_dir, '../src')) +output_path = os.path.relpath(os.path.join(script_dir, '../CruUI-Generate/cru_ui')) + +print('Input dir is {}'.format(input_dir)) +print('Output path is {}'.format(output_path)) + +os.system('python {} -o {} {}'.format(tool_path, output_path, input_dir)) |