mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
commit
9763c1810d
@ -6,7 +6,7 @@ from pathlib import Path
|
||||
|
||||
here = Path(__file__).parent
|
||||
|
||||
for script in (here / "scripts").glob("*.py"):
|
||||
for script in sorted((here / "scripts").glob("*.py")):
|
||||
print(f"Generating output for {script.name}...")
|
||||
out = subprocess.check_output(["python3", script.absolute()], text=True)
|
||||
if out:
|
||||
@ -14,4 +14,4 @@ for script in (here / "scripts").glob("*.py"):
|
||||
|
||||
if (here / "public").exists():
|
||||
shutil.rmtree(here / "public")
|
||||
subprocess.run(["hugo"], cwd=here / "src")
|
||||
subprocess.run(["hugo"], cwd=here / "src", check=True)
|
||||
|
Loading…
Reference in New Issue
Block a user