Skip to content

Commit a8e5226

Browse files
mjrenomjreno
authored andcommitted
fix __file__ not defined in notebook
1 parent 637b3bc commit a8e5226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/examples/twri.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def plot_head(head, workspace):
173173
tdis = flopy4.mf6.simulation.Tdis.from_time(time)
174174

175175
# Create workspace
176-
workspace = Path(__file__).parent / "twri" / "list_stresspkg"
176+
workspace = Path.cwd() / "twri" / "list_stresspkg"
177177
workspace.mkdir(parents=True, exist_ok=True)
178178

179179
# Create simulation
@@ -260,7 +260,7 @@ def plot_head(head, workspace):
260260
gwf.rcha = [rcha]
261261

262262
# create new workspace
263-
workspace = Path(__file__).parent / "twri" / "array_stresspkg"
263+
workspace = Path.cwd() / "twri" / "array_stresspkg"
264264
workspace.mkdir(parents=True, exist_ok=True)
265265
sim.workspace = workspace
266266

0 commit comments

Comments
 (0)