Skip to content

Commit

Permalink
Fix source code URL when addon path starts with root path (#546) (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Jun 16, 2021
1 parent e94771d commit 06c3840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/mkhtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def to_title(name):
# check the names of scripts to assign the right folder
topdir = os.path.abspath(os.getenv("MODULE_TOPDIR"))
curdir = os.path.abspath(os.path.curdir)
if curdir.startswith(topdir):
if curdir.startswith(topdir + os.path.sep):
source_url = trunk_url
pgmdir = curdir.replace(topdir, "").lstrip(os.path.sep)
else:
Expand Down

0 comments on commit 06c3840

Please sign in to comment.