Sfoglia il codice sorgente

fixed template generator

Denis Muratshin 12 anni fa
parent
commit
aad25cdb50
3 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 2 2
      .hg_archival.txt
  2. BIN
      doc.zip
  3. 4 1
      tools/gen_template.py

+ 2 - 2
.hg_archival.txt

@@ -1,5 +1,5 @@
 repo: b6d71054df5712e643a0685bc3ba54b123db5729
-node: 8d91d289597a8034818c1d8f9d92352841051cd3
+node: 7385c535f22550454cc07e36812df23543bda156
 branch: default
 latesttag: oldrender
-latesttagdistance: 182
+latesttagdistance: 183

BIN
doc.zip


+ 4 - 1
tools/gen_template.py

@@ -31,7 +31,10 @@ def run(args):
         #return
         pass
 
-    templates_path = os.path.split(__file__)[0] + "/templates/"
+    templates_path = os.path.dirname(__file__)
+    if not templates_path:
+        templates_path = "."
+    templates_path += "/templates/"
     root_path = templates_path + "/../../../"
     root_path = os.path.abspath(root_path)