simfile-scripts/releasenotes/2.1.0/example4.py

8 lines
232 B
Python
Raw Permalink Normal View History

2022-08-20 18:02:25 -07:00
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:
...