From b9a7c0cf39e31cc1954399ca8d2339e0b2b7ce20 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 7 Dec 2016 00:24:17 +0530 Subject: misc: Use relative imports everywhere Using 'mesonbuild' as the module can cause it to use the system-installed module and can also break if we rename the directory, so avoid that by always using relative imports. --- mesonbuild/backend/vs2010backend.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'mesonbuild/backend/vs2010backend.py') diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 15bebba..0f67771 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -15,17 +15,16 @@ import os, sys import pickle import re +import xml.dom.minidom +import xml.etree.ElementTree as ET -from mesonbuild import compilers -from mesonbuild.build import BuildTarget -from mesonbuild.mesonlib import File from . import backends from .. import build from .. import dependencies from .. import mlog -import xml.etree.ElementTree as ET -import xml.dom.minidom -from ..mesonlib import MesonException +from .. import compilers +from ..build import BuildTarget +from ..mesonlib import MesonException, File from ..environment import Environment def split_o_flags_args(args): -- cgit v1.1