Files
pwn-dojo/world/earth/.init
T
2023-02-01 17:04:07 -07:00

11 lines
254 B
Python

#!/opt/pwn.college/python
import pathlib
dir = pathlib.Path(__file__).parent
planets = (dir / "planets.txt").read_text().strip().splitlines()
for planet in planets:
planet_path = dir / f"planet_{planet.lower()}"
planet_path.write_text(planet)