projects
/
mass-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8305e00
)
use importlib.machinery instead of the (deprecated) imp
author
Ralf Jung
<post@ralfj.de>
Sun, 22 Sep 2013 08:39:28 +0000
(10:39 +0200)
committer
Ralf Jung
<post@ralfj.de>
Sun, 22 Sep 2013 08:39:28 +0000
(10:39 +0200)
mass_build.py
patch
|
blob
|
history
diff --git
a/mass_build.py
b/mass_build.py
index e9e372530966463cfc4165f391bf60570764f8e5..88db907bd01ebb41fdfab6eadca4aa66d684cfec 100755
(executable)
--- a/
mass_build.py
+++ b/
mass_build.py
@@
-16,7
+16,7
@@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# 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, imp
ortlib.machinery
import argparse, os, sys, subprocess
from collections import OrderedDict
import argparse, os, sys, subprocess
from collections import OrderedDict
@@
-81,7
+81,7
@@
if args.reset_source and not args.update:
# load config
old_val = sys.dont_write_bytecode
sys.dont_write_bytecode = True
# load config
old_val = sys.dont_write_bytecode
sys.dont_write_bytecode = True
-config = imp
.load_source('config', args.config
).__dict__
+config = imp
ortlib.machinery.SourceFileLoader('config', args.config).load_module(
).__dict__
sys.dont_write_bytecode = old_val
# initialise variables holding the configuration
sys.dont_write_bytecode = old_val
# initialise variables holding the configuration