From 503e00f7ffca1b2805abe97b4a9f63870a98eaaa Mon Sep 17 00:00:00 2001 From: feuillemorte Date: Thu, 25 Jan 2018 15:57:29 +0300 Subject: [PATCH] #1642 Remove adding rootdir to sys path --- _pytest/config.py | 1 - 1 file changed, 1 deletion(-) diff --git a/_pytest/config.py b/_pytest/config.py index 14ed4d09b..dfdbeab3f 100644 --- a/_pytest/config.py +++ b/_pytest/config.py @@ -998,7 +998,6 @@ class Config(object): self.invocation_dir = py.path.local() if ns.rootdir: self.invocation_dir = self.rootdir - sys.path.append(str(self.rootdir)) self._parser.addini('addopts', 'extra command line options', 'args') self._parser.addini('minversion', 'minimally required pytest version') self._override_ini = ns.override_ini or ()