Created
July 31, 2020 13:44
-
-
Save rjpaddock/d53956767dd4a1fe267dee08c995c956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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