mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-13 11:42:31 +00:00
* Removes old UT definition files (drone/travis) * Adds concurrency definitions to the workflows * Changes our workflows to be more in line with what /tg does * Adds a workflow to build/commit TGUI * Adds a workflow to build/commit changelogs Add python version to dependencies.sh Fix dme errors Removes a bunch of not included files Cache Opendream and add directory to check_grep.py Co-authored-by: Werner <Arrow768@users.noreply.github.com>
40 lines
917 B
Python
40 lines
917 B
Python
import os
|
|
import sys
|
|
from .dmm import *
|
|
|
|
|
|
def _self_test():
|
|
# test: can we load every DMM in the tree
|
|
count = 0
|
|
for dirpath, dirnames, filenames in os.walk('.'):
|
|
if '.git' in dirnames:
|
|
dirnames.remove('.git')
|
|
for filename in filenames:
|
|
if filename.endswith('.dmm'):
|
|
fullpath = os.path.join(dirpath, filename)
|
|
try:
|
|
DMM.from_file(fullpath)
|
|
except Exception:
|
|
print('Failed on:', fullpath)
|
|
raise
|
|
count += 1
|
|
|
|
print(f"{os.path.relpath(__file__)}: successfully parsed {count} .dmm files")
|
|
|
|
|
|
def _usage():
|
|
print(f"Usage:")
|
|
print(f" tools{os.sep}bootstrap{os.sep}python -m {__spec__.name}")
|
|
exit(1)
|
|
|
|
|
|
def _main():
|
|
if len(sys.argv) == 1:
|
|
return _self_test()
|
|
|
|
return _usage()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
_main()
|