32 |
import os, os.path, re |
import os, os.path, re |
33 |
import navidoc.link, navidoc.parser |
import navidoc.link, navidoc.parser |
34 |
|
|
35 |
from navidoc.utils.path import * |
from navidoc.util.path import * |
36 |
|
|
37 |
dbg = config.dbg.shorthand('mp') |
dbg = config.dbg.shorthand('mp') |
38 |
dbg_fail = config.dbg.shorthand('mp.fail') |
dbg_fail = config.dbg.shorthand('mp.fail') |
78 |
raise MetapostException(slashify(config.mp_directory)+diagram+'.gen.mp'+' not found') |
raise MetapostException(slashify(config.mp_directory)+diagram+'.gen.mp'+' not found') |
79 |
|
|
80 |
s = open(slashify(config.mp_directory)+diagram+'.gen.uml').read() |
s = open(slashify(config.mp_directory)+diagram+'.gen.uml').read() |
81 |
l = navidoc.utils.parser.parse_indented(s) |
l = navidoc.util.parser.parse_indented(s) |
82 |
m = navidoc.parser.ElementList(l) |
m = navidoc.parser.ElementList(l) |
83 |
|
|
84 |
if len(extension) > 0: extension = '_'+extension |
if len(extension) > 0: extension = '_'+extension |