# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-import vcs, build_system, imp
+import vcs, build_system, importlib.machinery
import argparse, os, sys, subprocess
from collections import OrderedDict
# load config
old_val = sys.dont_write_bytecode
sys.dont_write_bytecode = True
-config = imp.load_source('config', args.config).__dict__
+config = importlib.machinery.SourceFileLoader('config', args.config).load_module().__dict__
sys.dont_write_bytecode = old_val
# initialise variables holding the configuration