Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failed the sum_dirac_dfcoef QProcess when Windows path with space. #59

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/dcaspt2_input_generator/components/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,9 @@ def check_version():
def run_command():
num_process = max(1, settings.multi_process_input.multi_process_num)
command = create_command(
f"sum_dirac_dfcoef -i {file_path} -d 3 -c -o {dir_info.sum_dirac_dfcoef_path} -j {num_process}"
f'sum_dirac_dfcoef -i "{file_path}" -d 3 -c -o "{dir_info.sum_dirac_dfcoef_path}" -j {num_process}'
)
cmd = command.split()
self.process.start(cmd[0], cmd[1:])
self.process.startCommand(command)
if self.process.exitCode() != 0:
err_msg = f"An error has ocurred while running the sum_dirac_dfcoef program.\n\
Please check the output file. path: {file_path}\nExecuted command: {command}"
Expand Down