Skip to content

Commit

Permalink
generator: fix m3u creation outside program dir
Browse files Browse the repository at this point in the history
  • Loading branch information
bnnm committed Mar 2, 2021
1 parent afad6c0 commit 520a879
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions wwiser/wgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,14 @@ def _write_tagsm3u(self):
files = list(tags.keys())
files.sort()

# take first bank as base folder (like .txtp), not sure if current (wwiser's) would be beter
basepath = self._banks[0].get_root().get_path()

outdir = self._txtpcache.outdir
if outdir:
outdir = os.path.join(basepath, outdir)
os.makedirs(outdir, exist_ok=True)

outname = outdir + "!tags.m3u"

with open(outname, 'w', newline="\r\n") as outfile:
Expand Down
2 changes: 1 addition & 1 deletion wwiser/wversion.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#autogenerated on build
WWISER_VERSION = "v20210110"
WWISER_VERSION = "v20210303"

0 comments on commit 520a879

Please sign in to comment.