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 14
14
# add anything in PATH
15
15
paths = os .environ .get ("PATH" , "" )
16
16
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 )
19
20
20
21
# import core bindings to C++
21
22
from . import amrex_1d_pybind
Original file line number Diff line number Diff line change 14
14
# add anything in PATH
15
15
paths = os .environ .get ("PATH" , "" )
16
16
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 )
19
20
20
21
# import core bindings to C++
21
22
from . import amrex_2d_pybind
Original file line number Diff line number Diff line change 14
14
# add anything in PATH
15
15
paths = os .environ .get ("PATH" , "" )
16
16
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 )
19
20
20
21
# import core bindings to C++
21
22
from . import amrex_3d_pybind
You can’t perform that action at this time.
0 commit comments