File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1414 # add anything in PATH
1515 paths = os .environ .get ("PATH" , "" )
1616 for p in paths .split (";" ):
17- if os .path .exists (p ):
18- os .add_dll_directory (p )
17+ p_abs = os .path .abspath (os .path .expanduser (os .path .expandvars (p )))
18+ if os .path .exists (p_abs ):
19+ os .add_dll_directory (p_abs )
1920
2021# import core bindings to C++
2122from . import amrex_1d_pybind
Original file line number Diff line number Diff line change 1414 # add anything in PATH
1515 paths = os .environ .get ("PATH" , "" )
1616 for p in paths .split (";" ):
17- if os .path .exists (p ):
18- os .add_dll_directory (p )
17+ p_abs = os .path .abspath (os .path .expanduser (os .path .expandvars (p )))
18+ if os .path .exists (p_abs ):
19+ os .add_dll_directory (p_abs )
1920
2021# import core bindings to C++
2122from . import amrex_2d_pybind
Original file line number Diff line number Diff line change 1414 # add anything in PATH
1515 paths = os .environ .get ("PATH" , "" )
1616 for p in paths .split (";" ):
17- if os .path .exists (p ):
18- os .add_dll_directory (p )
17+ p_abs = os .path .abspath (os .path .expanduser (os .path .expandvars (p )))
18+ if os .path .exists (p_abs ):
19+ os .add_dll_directory (p_abs )
1920
2021# import core bindings to C++
2122from . import amrex_3d_pybind
You can’t perform that action at this time.
0 commit comments