Fix check for target dir presence

This commit is contained in:
Marcin Kulik
2023-04-24 17:14:47 +02:00
parent 373dcc12f5
commit 73d1bfb5ef

View File

@@ -83,7 +83,7 @@ class RecordCommand(Command): # pylint: disable=too-many-instance-attributes
return 1 return 1
else: else:
dir_path = os.path.dirname(self.filename) dir_path = os.path.dirname(os.path.abspath(self.filename))
if not os.path.exists(dir_path): if not os.path.exists(dir_path):
self.print_error(f"directory {dir_path} doesn't exist") self.print_error(f"directory {dir_path} doesn't exist")