Skip to content

Commit

Permalink
No need to add file to env by self
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Jun 17, 2021
1 parent f9084e0 commit 4d65651
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sphinxcontrib/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,12 @@ def run(self):
img['uri'] = os.path.join('/', reluri) # relative to source dir
img['remote_uri'] = self.arguments[0]
env.remote_images[img['remote_uri']] = reluri
env.images.add_file('', reluri)
else:
img['uri'] = self.arguments[0]
img['remote_uri'] = self.arguments[0]
else:
img['uri'] = self.arguments[0]
img['remote'] = False
env.images.add_file('', img['uri'])

img['content'] = description.astext()

Expand Down

0 comments on commit 4d65651

Please sign in to comment.