aboutsummaryrefslogtreecommitdiff
path: root/src/command.py
diff options
context:
space:
mode:
authortassaron2017-06-25 15:50:31 -0400
committertassaron2017-06-25 15:50:31 -0400
commit2c82a65d1b79b898b2bc27fc5b1e0362fc160c46 (patch)
tree3215f071c503abb113c979847f5c66696f692ef0 /src/command.py
parentfc2951379c418086bcc00af2b8901f92eafc224a (diff)
needs more tuples
Diffstat (limited to 'src/command.py')
-rw-r--r--src/command.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/command.py b/src/command.py
index 09b54ac..3eea1b6 100644
--- a/src/command.py
+++ b/src/command.py
@@ -87,16 +87,16 @@ class Command(QtCore.QObject):
if self.args.export and self.args.projpath:
errcode, data = self.core.parseAvFile(projPath)
- for line in data['WindowFields']:
- if 'outputFile' in line:
- output = line.split('=', 1)[1]
- if not os.path.dirname(output):
+ for key, value in data['WindowFields']:
+ if 'outputFile' in key:
+ output = value
+ if not os.path.dirname(value):
output = os.path.join(
os.path.expanduser('~'),
output
)
- if 'audioFile' in line:
- input = line.split('=', 1)[1]
+ if 'audioFile' in key:
+ input = value
self.createAudioVisualisation(input, output)
elif self.args.input and self.args.output: