66 |
return rstfiles |
return rstfiles |
67 |
|
|
68 |
def run_convert(path): |
def run_convert(path): |
|
global rst2html, rst2latex |
|
69 |
def rst2both(path): |
def rst2both(path): |
70 |
rst2html(path) |
rst2html(path) |
71 |
rst2latex(path) |
rst2latex(path) |
72 |
|
rst2xxx = rst2html |
73 |
if path.find("manuscripts/") != -1: |
if path.find("manuscripts/") != -1: |
74 |
rst2html = rst2both |
rst2xxx = rst2both |
75 |
|
|
76 |
if os.path.isdir(path): |
if os.path.isdir(path): |
77 |
rstfiles = _rstFiles(path) |
rstfiles = _rstFiles(path) |
78 |
for rstfile in rstfiles: |
for rstfile in rstfiles: |
79 |
rst2html(mputils._slashify(path)+rstfile) |
rst2xxx(mputils._slashify(path)+rstfile) |
80 |
|
|
81 |
elif os.path.isfile(path) or os.path.isfile(path+'.rst'): |
elif os.path.isfile(path) or os.path.isfile(path+'.rst'): |
82 |
rst2html(path) |
rst2xxx(path) |
83 |
|
|
84 |
else: |
else: |
85 |
umltool.set_transition_paths(path) |
umltool.set_transition_paths(path) |