Open mpvanderschelling opened 10 months ago
This line of code uses direct '/' concatenation to create a file path. This will not work on Windows.
Use the pathlib library:
pathlib
from pathlib import Path "script_path": Path(rvesimulator.__file__).parent / "scriptbase",
Assignees: Labels:
https://github.com/bessagroup/rvesimulator/blob/ea31752a6da3131cfe55027895ac23ddf684f3de/src/rvesimulator/benchmarks/asca_rve.py#L40-L41
Problem
This line of code uses direct '/' concatenation to create a file path. This will not work on Windows.
Proposed solution
Use the
pathlib
library:Assignees: Labels:
https://github.com/bessagroup/rvesimulator/blob/ea31752a6da3131cfe55027895ac23ddf684f3de/src/rvesimulator/benchmarks/asca_rve.py#L40-L41