summaryrefslogtreecommitdiff
path: root/coverage/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r--coverage/cmdline.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index 4ef08f1d..2be32947 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -394,6 +394,10 @@ class CoverageScript(object):
if not self.args_ok(options, args):
return ERR
+ # We need to be able to import from the current directory, because
+ # plugins may try to, for example, to read Django settings.
+ sys.path[0] = ''
+
# Listify the list options.
source = unshell_list(options.source)
omit = unshell_list(options.omit)