simfile-scripts/releasenotes/2.1.0/example4.py
2022-08-20 18:02:25 -07:00

7 lines
232 B
Python

from simfile.dir import SimfileDirectory
simfile_dir = SimfileDirectory(R"C:\StepMania\Songs\My Pack\My Song")
assets = simfile_dir.assets()
assert assets.music, "No music file"
with open(assets.music, "rb") as audio_file:
...