11 lines
252 B
Python
11 lines
252 B
Python
#!/usr/local/bin/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)
|