Explorar o código

Fix source code URL when addon path starts with root path (#546) (#1645)

Huidae Cho %!s(int64=4) %!d(string=hai) anos
pai
achega
06c3840cda
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/mkhtml.py

+ 1 - 1
utils/mkhtml.py

@@ -428,7 +428,7 @@ if not year:
 # 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: