Permalink
Browse files

look for index.xhtml or index.svg if index.html doesn't exist. closes #…

…134 (thanks Jonathan Watt!)
  • Loading branch information...
lloyd committed Jun 27, 2011
1 parent a815f38 commit bb2300e68c6a2a8e011d0f1f73d7d427bd6a34d2
Showing with 6 additions and 1 deletion.
  1. +6 −1 chromeless
View
@@ -40,7 +40,12 @@ def findBrowserHTML(path):
# "examples" directory can be omitted, but we'll automatically append it to
# verify that file exists.
if os.path.isdir(path):
- path = os.path.join(path, "index.html")
+ if os.path.exists(os.path.join(path, "index.html")):
+ path = os.path.join(path, "index.html")
+ elif os.path.exists(os.path.join(path, "index.xhtml")):
+ path = os.path.join(path, "index.xhtml")
+ elif os.path.exists(os.path.join(path, "index.svg")):
+ path = os.path.join(path, "index.svg")
# the path we return must have ui omitted
return os.path.abspath(path)

0 comments on commit bb2300e

Please sign in to comment.