validate.py imports build_index.py; stop it creating tools/__pycache__ and ignore bytecode files.
This commit is contained in:
1 parent
4581f9dc26
commit
b0eab384d5
3 files changed
+6
-1
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
Binary file not shown.
+4
-1
@@ -5,12 +5,15 @@ Python 3 standard library only. Run from anywhere:
|
|||||||
python3 tools/validate.py
|
python3 tools/validate.py
|
||||||
Prints "OK <n> trails" and exits 0, or prints one error per line and exits 1.
|
Prints "OK <n> trails" and exits 0, or prints one error per line and exits 1.
|
||||||
"""
|
"""
|
||||||
|
import sys
|
||||||
|
|
||||||
|
sys.dont_write_bytecode = True
|
||||||
|
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import json
|
import json
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
|
|
||||||
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
MAX_BYTES = 50 * 1024 * 1024
|
MAX_BYTES = 50 * 1024 * 1024
|
||||||
|
|||||||
Reference in new issue
Block a user