blob: 2f26f90974077c46b2d176e9d5426e441422a1b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
try:
from ymake import CustomCommand as RealCustomCommand
from ymake import addrule
from ymake import addparser
from ymake import subst
class CustomCommand(RealCustomCommand):
def __init__(self, *args, **kwargs):
RealCustomCommand.__init__(*args, **kwargs)
def resolve_path(self, path):
return subst(path)
except ImportError:
from _custom_command import CustomCommand # noqa
from _custom_command import addrule # noqa
from _custom_command import addparser # noqa
try:
from ymake import engine_version
except ImportError:
def engine_version():
return -1
|