Skip to content

Commit f3bf91a

Browse files
committed
tests: use __file__ for package import
1 parent 2136f4b commit f3bf91a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing/structure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ file:
211211

212212
import os
213213
import sys
214-
sys.path.insert(0, os.path.abspath('..'))
214+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
215215

216216
import sample
217217

0 commit comments

Comments
 (0)