blob: 883f662314767bc0ddae846e85a837cbfe9bc6f9 (
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
|