Skip to content

Commit

Permalink
fix: usr: Fix directive for diagrams passed as absolute paths (fix #9).
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-jenkins committed Jul 11, 2017
1 parent 16d39da commit 5b98a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plantweb/directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def run(self):
srcfile = self.arguments[0]

if isabs(srcfile):
srcpath = join(env.confdir, srcfile)
srcpath = join(env.app.confdir, relpath(srcfile, start='/'))
else:
srcpath = join(document_dir, srcfile)

Expand Down

0 comments on commit 5b98a3b

Please sign in to comment.