Skip to content

Commit fd10ff5

Browse files
committed
Fix output dir not correct
1 parent ab67499 commit fd10ff5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,8 @@ def output_dir(self):
479479
if os.path.isabs(self.output_line.text()):
480480
return self.output_line.text()
481481
else:
482-
return utils.abs_path(self.output_line.text())
482+
return utils.path_join(self.project_dir(),
483+
self.output_line.text())
483484
return ''
484485

485486
def create_download_bar(self):

utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def path_join(base, *rest):
126126

127127
if is_windows():
128128
rpath = rpath.replace('/', '\\')
129+
130+
rpath = os.path.normpath(rpath)
131+
129132
return rpath
130133

131134
def get_data_path(dir_path):

0 commit comments

Comments
 (0)