aboutsummaryrefslogtreecommitdiff
path: root/scripts/merge.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/merge.py')
-rw-r--r--scripts/merge.py13
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))