mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 15:32:54 +00:00
11 lines
321 B
Python
Executable File
11 lines
321 B
Python
Executable File
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
from contextlib import suppress
|
|
from pathlib import Path
|
|
|
|
with Path("created-with-tasks.txt").open("a", newline="\n") as cwt:
|
|
cwt.write(" ".join([os.environ["STAGE"]] + sys.argv[1:]) + "\n")
|
|
with suppress(FileNotFoundError):
|
|
Path("delete-in-tasks.txt").unlink()
|