9 lines
506 B
Python
9 lines
506 B
Python
from pathlib import Path
|
|
root = Path(__file__).resolve().parent
|
|
source = (root / 'launch-package46-native.py').read_text(encoding='utf-8')
|
|
assert source.count("native = root / 'qa/native46'") == 1
|
|
source = source.replace("native = root / 'qa/native46'", "native = root / 'qa/reopen46'\nnative.mkdir(exist_ok=False)")
|
|
with (root / 'launch-package46-reopen.py').open('x', encoding='utf-8', newline='\n') as f:
|
|
f.write(source)
|
|
print('Created fresh-session watcher with separate exclusive logs/receipts.')
|