X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=blobdiff_plain;f=src%2Ftree-cutter.py;h=6ba54355480bf76d400c8b05107938f31c6efc93;hp=7a5d6cf7d577c214616c2c5c7d6d0aea10e610e5;hb=690190fc318892ef139ae46c2744054be6e63299;hpb=c382f50f4d6b3285dcdac852f39227b336d530d2 diff --git a/src/tree-cutter.py b/src/tree-cutter.py index 7a5d6cf..6ba5435 100755 --- a/src/tree-cutter.py +++ b/src/tree-cutter.py @@ -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 @@ -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)