aboutsummaryrefslogtreecommitdiff
path: root/src/command.py
diff options
context:
space:
mode:
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: