File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 6
6
import argparse
7
7
import logging
8
8
import subprocess
9
+ import plasTeX .TeX
10
+ import plasTeX .Logging
9
11
12
+ from .ProblemPlasTeX import ProblemRenderer
13
+ from .ProblemPlasTeX import ProblemsetMacros
14
+ from . import template
10
15
11
16
def convert (options : argparse .Namespace ) -> None :
12
- import plasTeX .TeX
13
- import plasTeX .Logging
14
-
15
- from .ProblemPlasTeX import ProblemRenderer
16
- from .ProblemPlasTeX import ProblemsetMacros
17
- from . import template
18
-
19
17
problem = os .path .realpath (options .problem )
20
18
21
19
problembase = os .path .splitext (os .path .basename (problem ))[0 ]
Original file line number Diff line number Diff line change 9
9
10
10
11
11
def convert (options : argparse .Namespace ) -> bool :
12
-
13
12
problem = os .path .realpath (options .problem )
14
13
problembase = os .path .splitext (os .path .basename (problem ))[0 ]
15
14
destfile = string .Template (options .destfile ).safe_substitute (problem = problembase )
16
15
17
- texfile = problem
18
16
# Set up template if necessary
19
17
with template .Template (problem , language = options .language ) as templ :
20
18
texfile = templ .get_file_name ()
Original file line number Diff line number Diff line change 1
1
-e .
2
+
3
+ plasTeX ~= 3.0
4
+ PyYAML ~= 6.0
You can’t perform that action at this time.
0 commit comments