Skip to content

Commit

Permalink
fix: Psi4Driver path handling in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrossinek committed Feb 10, 2022
1 parent 567a85a commit 6d23b1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# vim: ft=python
import numpy

from qiskit_nature.constants import BOHR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def run(self) -> ElectronicStructureDriverResult:
file_fd, hdf5_file = tempfile.mkstemp(suffix=".hdf5")
os.close(file_fd)

input_text += [f'save_to_hdf5(driver_result, "{hdf5_file}", force=True)']
input_text += [f'save_to_hdf5(driver_result, "{Path(hdf5_file).as_posix()}", force=True)']

file_fd, input_file = tempfile.mkstemp(suffix=".inp")
os.close(file_fd)
Expand Down

0 comments on commit 6d23b1b

Please sign in to comment.