Adding a css mark for the top menu.
[treecutter.git] / src / tree-cutter.py
index 7a5d6cf7d577c214616c2c5c7d6d0aea10e610e5..519acc9e21e98120aed3807b2507cdab829a154d 100755 (executable)
@@ -106,7 +106,7 @@ class Page():
             for c in code:
                 (p, ext) = os.path.splitext(c.href)
                 if ext in valid_scripts:
-                    exe = os.path.join(os.path.abspath(dirname+c.href))
+                    exe = os.path.join(os.path.abspath(dirname)+'/'+c.href)
                     xml = subprocess.Popen([exe],stdout=subprocess.PIPE)
                     xstr = bindery.parse(str(xml.stdout.read()))
                     idp = c.xml_index_on_parent
@@ -147,7 +147,7 @@ class Page():
         os.chdir(cwd)
 
     def template(self,sitemap):
-        htmlmenu =  sitemap.gen_menu(self._lang,None,None)
+        htmlmenu =  sitemap.gen_menu(self._lang,None,"menu")
         levelmenu = sitemap.gen_menu(self._lang,self,"tree")
         langmenu = sitemap.lang_menu(self._lang)
         template = Template(file=style_tmpl,
@@ -560,7 +560,7 @@ sitemap.read_map()
 missing = dir_.set() - sitemap.set()
 removed = sitemap.set() - dir_.set()
 for page in removed:
-    print removed+' pages missing!!'
+    print page+' pages missing!!'
 for page in missing:
     print 'adding missing page '+page
     sitemap.add_link(page)