equal
deleted
inserted
replaced
10 import locale |
10 import locale |
11 import os |
11 import os |
12 import sys |
12 import sys |
13 |
13 |
14 from typing import ( |
14 from typing import ( |
15 Callable, |
|
16 List, |
15 List, |
17 ) |
16 ) |
18 |
17 |
19 from .utils import resourceutil |
18 from .utils import resourceutil |
20 from . import ( |
19 from . import ( |
21 encoding, |
20 encoding, |
22 pycompat, |
21 pycompat, |
23 ) |
22 ) |
24 |
|
25 # keeps pyflakes happy |
|
26 assert [ |
|
27 Callable, |
|
28 List, |
|
29 ] |
|
30 |
23 |
31 # modelled after templater.templatepath: |
24 # modelled after templater.templatepath: |
32 if getattr(sys, 'frozen', None) is not None: |
25 if getattr(sys, 'frozen', None) is not None: |
33 module = pycompat.sysexecutable |
26 module = pycompat.sysexecutable |
34 else: |
27 else: |