Commits

Michael[tm] Smith committed 3871388

Add way to set local path to secondary resources.

Comments (0)

Files changed (1)

 ianaLang = 'http://www.iana.org/assignments/language-subtag-registry'
 ianaCharset = 'http://www.iana.org/assignments/character-sets'
 aboutPage = 'http://about.validator.nu/'
+aboutPath = 'validator/site/'
 microsyntax = 'http://wiki.whatwg.org/wiki/MicrosyntaxDescriptions'
 altAdvice = 'http://wiki.whatwg.org/wiki/Validator.nu_alt_advice'
 icon = None
     '-Dnu.validator.servlet.path.generic=' + genericPath,
     '-Dnu.validator.servlet.path.html5=' + html5Path,
     '-Dnu.validator.servlet.path.parsetree=' + parsetreePath,
+    '-Dnu.validator.servlet.path.about=' + os.path.join(buildRoot, aboutPath),
   ]
 
   if usePromiscuousSsl:
       ianaCharset = arg[15:]
     elif arg.startswith("--about="):
       aboutPage = arg[8:]
+    elif arg.startswith("--about-path="):
+      aboutPath = arg[13:]
     elif arg.startswith("--microsyntax="):
       microsyntax = arg[14:]
     elif arg.startswith("--alt-advice="):