Skip to content

Instantly share code, notes, and snippets.

@rjpaddock
Created July 31, 2020 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjpaddock/d53956767dd4a1fe267dee08c995c956 to your computer and use it in GitHub Desktop.
Save rjpaddock/d53956767dd4a1fe267dee08c995c956 to your computer and use it in GitHub Desktop.
import os
import subprocess
directory_to_import = 'D:/Data/clients/RodPaddock/CCExtractor/'
extractor_exe_path = 'D:/Data/clients/RodPaddock/CCExtractor/ccextractorwin'
for file in os.listdir(directory_to_import):
if file.endswith(".mpg"):
print(os.path.join(directory_to_import, file))
subprocess.run([extractor_exe_path, os.path.join(directory_to_import, file)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment