From f3bf91aceceb0392bc0b0ad57df65bffd89c1bd6 Mon Sep 17 00:00:00 2001 From: tv3141 Date: Tue, 28 Feb 2017 11:33:48 +0000 Subject: [PATCH] tests: use __file__ for package import --- docs/writing/structure.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/structure.rst b/docs/writing/structure.rst index 3d7413e..b06e15a 100644 --- a/docs/writing/structure.rst +++ b/docs/writing/structure.rst @@ -211,7 +211,7 @@ file: import os import sys - sys.path.insert(0, os.path.abspath('..')) + sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import sample