Created
October 27, 2016 10:56
-
-
Save meiamsome/5d29d7ec999f1e4e3f609b0748101f05 to your computer and use it in GitHub Desktop.
Formats Premier Shortcuts as per Taran's video
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
# Script to process file as per https://www.youtube.com/watch?v=gF-f25dRbo8 | |
# Outputs to test.txt by default. | |
# Inputs as files on command line | |
import fileinput | |
if __name__ == "__main__": | |
output = 'test.txt' | |
with open(output, 'w') as f: | |
f.writelines(list(name + "&" + key.replace('+',' ') + "\n" for name, *keys in (line.strip().split('\t') for line in fileinput.input()) for key in keys)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment