simfile-scripts/releasenotes/2.1.0/example1.py

8 lines
259 B
Python
Raw Normal View History

2022-08-20 18:02:25 -07:00
from simfile.dir import SimfilePack
pack = SimfilePack(R"C:\StepMania\Songs\My Pack")
for simfile_dir in pack.simfile_dirs():
print("Simfile paths: ", simfile_dir.sm_path, simfile_dir.ssc_path)
sim = simfile_dir.open()
print("Title:", sim.title)