commit
0695c24cbc
|
@ -98,9 +98,9 @@ def main(factoryFile,package,buildDir):
|
||||||
# import isce
|
# import isce
|
||||||
import filecmp
|
import filecmp
|
||||||
try:
|
try:
|
||||||
import importlib
|
from importlib import util
|
||||||
factoryFile = os.path.abspath(factoryFile)
|
factoryFile = os.path.abspath(factoryFile)
|
||||||
mod = importlib.util.spec_from_file_location('.', factoryFile)
|
mod = util.spec_from_file_location('.', factoryFile)
|
||||||
factModule = mod.loader.load_module()
|
factModule = mod.loader.load_module()
|
||||||
factoriesInfo = factModule.getFactoriesInfo()
|
factoriesInfo = factModule.getFactoriesInfo()
|
||||||
nameList = []
|
nameList = []
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import os, sys
|
import os, sys
|
||||||
import importlib
|
from importlib import util as importlibutil
|
||||||
import argparse
|
import argparse
|
||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ class ConfigParser:
|
||||||
|
|
||||||
# If any of the following calls raises an exception,
|
# If any of the following calls raises an exception,
|
||||||
# there's a problem we can't handle -- let the caller handle it.
|
# there's a problem we can't handle -- let the caller handle it.
|
||||||
spec = importlib.util.find_spec(name)
|
spec = importlibutil.find_spec(name)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return spec.loader.load_module()
|
return spec.loader.load_module()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import os, sys
|
import os, sys
|
||||||
import importlib
|
from importlib import util as importlibutil
|
||||||
import argparse
|
import argparse
|
||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ class ConfigParser:
|
||||||
|
|
||||||
# If any of the following calls raises an exception,
|
# If any of the following calls raises an exception,
|
||||||
# there's a problem we can't handle -- let the caller handle it.
|
# there's a problem we can't handle -- let the caller handle it.
|
||||||
spec = importlib.util.find_spec(name)
|
spec = importlibutil.find_spec(name)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return spec.loader.load_module()
|
return spec.loader.load_module()
|
||||||
|
|
Loading…
Reference in New Issue