diff options
author | 杨宇千 <crupest@outlook.com> | 2018-11-13 17:18:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 17:18:18 +0800 |
commit | 91dda866a0919f9e6cfb5e7857ac0466572d96d8 (patch) | |
tree | c3b5fc6afeb4dad0de65212d1dae38940706a58a /scripts/merge.py | |
parent | 92bec65a76b62bbbee56b44c3020171606bb8bbb (diff) | |
parent | 97c35edea2ca67a06ba66f124b94ea62f0519def (diff) | |
download | cru-91dda866a0919f9e6cfb5e7857ac0466572d96d8.tar.gz cru-91dda866a0919f9e6cfb5e7857ac0466572d96d8.tar.bz2 cru-91dda866a0919f9e6cfb5e7857ac0466572d96d8.zip |
Merge pull request #17 from crupest/cppmerge-init
Add c++ source merge tools.
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)) |