WIP more prints

This commit is contained in:
Bruno Oliveira 2021-11-20 11:36:37 -03:00
parent 8fffd0fca5
commit 72cd4a96d0
1 changed files with 2 additions and 1 deletions

View File

@ -328,7 +328,8 @@ if sys.platform == "win32":
pyc: Path, pyc: Path,
) -> bool: ) -> bool:
track_debug = getattr(sys, "TRACK_REWRITE", False) track_debug = getattr(sys, "TRACK_REWRITE", False)
if track_debug:
print(f" write_pyc: parent exists? {pyc.parent.is_dir()}")
try: try:
with atomic_write(os.fspath(pyc), mode="wb", overwrite=True) as fp: with atomic_write(os.fspath(pyc), mode="wb", overwrite=True) as fp:
_write_pyc_fp(fp, source_stat, co) _write_pyc_fp(fp, source_stat, co)