Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sphinxarg/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@ def _nested_parse_paragraph(self, text):
return content

def _open_filename(self):
try:
return open(os.path.join(self.env.srcdir, self.options['filename']))
except OSError:
pass
# try open with given path
try:
return open(self.options['filename'])
Expand Down