From c27bc7bdb4e3da63b232e29d4f810e17b23ab037 Mon Sep 17 00:00:00 2001 From: James Tocknell Date: Thu, 7 Feb 2019 14:36:52 +1100 Subject: [PATCH] ENH: Ensure that sys.path has the current directory --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 12c8b1087..9d2c910e1 100755 --- a/setup.py +++ b/setup.py @@ -19,6 +19,11 @@ import os import os.path as op +# Newer packaging standards may recommend removing the current dir from the +# path, add it back if needed. +if '' not in sys.path: + sys.path.insert(0, '') + import setup_build, setup_configure