simfile-scripts/releasenotes/2.1.0/example3.py

7 lines
222 B
Python
Raw Normal View History

2022-08-20 18:02:25 -07:00
import simfile
from fs.zipfs import ZipFS
zip_fs = ZipFS(R"C:\Users\micro\Downloads\Coconut [13].zip")
sim, filename = simfile.opendir("Coconut", filesystem=zip_fs)
print(f"Loaded {sim.title} from {filename} inside ZIP")