Support calling checkrefs.py from other dirs
This commit is contained in:
parent
f22d0d899e
commit
39f2889cf7
@ -38,7 +38,7 @@ pipeline {
|
||||
|
||||
stage("Data checks") {
|
||||
steps {
|
||||
sh "cd source/tools/entity/ && python3 checkrefs.py -tax"
|
||||
sh "python3 source/tools/entity/checkrefs.py -tax"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -131,14 +131,14 @@ class CheckRefs:
|
||||
if args.check_unused:
|
||||
self.check_unused()
|
||||
if args.validate_templates:
|
||||
sys.path.append("../xmlvalidator/")
|
||||
sys.path.append(str(Path(__file__).parent.parent / "xmlvalidator"))
|
||||
from validate_grammar import RelaxNGValidator
|
||||
|
||||
validate = RelaxNGValidator(self.vfs_root, self.mods)
|
||||
if not validate.run():
|
||||
self.inError = True
|
||||
if args.validate_actors:
|
||||
sys.path.append("../xmlvalidator/")
|
||||
sys.path.append(str(Path(__file__).parent.parent / "xmlvalidator"))
|
||||
from validator import Validator
|
||||
|
||||
validator = Validator(self.vfs_root, self.mods)
|
||||
|
Loading…
Reference in New Issue
Block a user