summaryrefslogtreecommitdiff
path: root/pylint/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/utils.py')
-rw-r--r--pylint/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/utils.py b/pylint/utils.py
index 9c078eba8..e4fd0b95c 100644
--- a/pylint/utils.py
+++ b/pylint/utils.py
@@ -436,7 +436,7 @@ class MessagesHandlerMixIn(object):
else:
module, obj = get_module_and_frameid(node)
abspath = node.root().file
- path = abspath.replace(self.reporter.path_strip_prefix, '')
+ path = abspath.replace(self.reporter.path_strip_prefix, '', 1)
# add the message
self.reporter.handle_message(
Message(msgid, symbol,