absolut path to output folder
This commit is contained in:
parent
e27fa3f5aa
commit
026a76a296
@ -45,8 +45,11 @@ def main():
|
||||
output()
|
||||
|
||||
else:
|
||||
for output in os.listdir('ffplayout/output'):
|
||||
if os.path.isfile(os.path.join('ffplayout/output', output)) \
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
output_dir = os.path.join(script_dir, 'ffplayout', 'output')
|
||||
|
||||
for output in os.listdir(output_dir):
|
||||
if os.path.isfile(os.path.join(output_dir, output)) \
|
||||
and output != '__init__.py':
|
||||
mode = os.path.splitext(output)[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user