summaryrefslogtreecommitdiff
path: root/command/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'command/check.py')
-rw-r--r--command/check.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/command/check.py b/command/check.py
index 7ebe707c..04c2f964 100644
--- a/command/check.py
+++ b/command/check.py
@@ -120,7 +120,8 @@ class check(Command):
def _check_rst_data(self, data):
"""Returns warnings when the provided data doesn't compile."""
- source_path = StringIO()
+ # the include and csv_table directives need this to be a path
+ source_path = self.distribution.script_name or 'setup.py'
parser = Parser()
settings = frontend.OptionParser(components=(Parser,)).get_default_values()
settings.tab_width = 4