aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/_import_wrapper.py
blob: f21bb1dc11a9982a31ce0a50d641e7fba2b4450a (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