mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 23:16:06 +08:00
Merge pull request #13969 from lggomez/feat/pinter-linter_invfiles
printer-linter: exit on invalid definition file paths
This commit is contained in:
commit
3f699a35f4
@ -1,5 +1,6 @@
|
|||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from os import getcwd
|
from os import getcwd
|
||||||
|
from os import path
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
@ -41,6 +42,11 @@ def main() -> None:
|
|||||||
|
|
||||||
full_body_check = {"Diagnostics": []}
|
full_body_check = {"Diagnostics": []}
|
||||||
|
|
||||||
|
for file in files:
|
||||||
|
if not path.exists(file):
|
||||||
|
print(f"Can't find the file: {file}")
|
||||||
|
return
|
||||||
|
|
||||||
if to_fix or to_diagnose:
|
if to_fix or to_diagnose:
|
||||||
for file in files:
|
for file in files:
|
||||||
diagnostics = diagnoseIssuesWithFile(file, settings)
|
diagnostics = diagnoseIssuesWithFile(file, settings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user