merging changes
This commit is contained in:
commit
b58c7b0ce7
1 changed files with 5 additions and 1 deletions
6
tools/build/build.py
Normal file → Executable file
6
tools/build/build.py
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
#vim: et:ts=4:sw=4:sts=4
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
@ -27,6 +29,8 @@ def write_path(file):
|
||||||
if path and not os.path.exists(path):
|
if path and not os.path.exists(path):
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
|
|
||||||
|
os.chdir(os.path.dirname(__file__))
|
||||||
|
|
||||||
source_path = '../../source/'
|
source_path = '../../source/'
|
||||||
build_path = '../../build/'
|
build_path = '../../build/'
|
||||||
|
|
||||||
|
@ -70,4 +74,4 @@ for dirname, dirnames, filenames in os.walk(build_path + 'svg'):
|
||||||
if filename[:1] != '.':
|
if filename[:1] != '.':
|
||||||
files.append(os.path.join(dirname.replace(build_path, ''), filename))
|
files.append(os.path.join(dirname.replace(build_path, ''), filename))
|
||||||
|
|
||||||
write_file(build_path + 'json/OxUI.json', json.dumps(files, indent=4, sort_keys=True))
|
write_file(build_path + 'json/OxUI.json', json.dumps(files, indent=4, sort_keys=True))
|
||||||
|
|
Loading…
Reference in a new issue