1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 23:29:41 +02:00
audacity/scripts/piped-work/make_html.py
James Crook fa49d94530 Script work
Add Envelope script
Add Clips and Boundaries Scripts.
Add docimages_oddments.py for the weirder cases.
Add make html script.
Add more spectral images
Add Dark versions of spectrograms (paul's comment)
Clean up oddments script.

- This commit also adds an option NOT to bring Audacity to the top when screenshotting.
-- That's because QuickPlay will disappear if you do -because you lose mouse capture.
- Also allow negative window IDs in the drag command.

- Registration names of align commands sorted.  They had &, : and / in them.
- Fixed bug in SetTrackInfo where bFocused was being ignored
- Fixed bug where command manager ignored multi-commands.
- Commit docimages_oddments.py again, to fix line endings.
2018-02-24 14:20:29 -05:00

18 lines
550 B
Python

# Takes an image file directory and makes the web page that lists them.
# They are listed in creation date/time order.
import glob
import os
def getFiles() :
files = glob.glob("C:\\OpenSourceGit\\AudacityTeamTools\\wit-html\\auto_images\\*.png")
files.sort(key=os.path.getmtime)
return [ os.path.basename( name ) for name in files ]
#print("\n".join(files))
def oneItem( name ) :
return "<img src='./auto_images/"+name+"'><br><em>"+name+"</em><br>"
files = getFiles()
print( "\n".join( [ oneItem(name) for name in files ] ) )