mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] if output is directly a filename without a path no need to create a dir
This commit is contained in:
parent
3c074e637c
commit
8428385cd4
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
output_dir = os.path.split(args.output)[0]
|
output_dir = os.path.split(args.output)[0]
|
||||||
|
|
||||||
if not os.path.exists(output_dir):
|
if output_dir and not os.path.exists(output_dir):
|
||||||
os.makedirs(output_dir)
|
os.makedirs(output_dir)
|
||||||
|
|
||||||
output_path = args.output
|
output_path = args.output
|
||||||
|
|
Loading…
Add table
Reference in a new issue