diff options
author | Mark Sienkiewicz <sienkiew@stsci.edu> | 2012-12-28 21:24:23 +0000 |
---|---|---|
committer | Mark Sienkiewicz <sienkiew@stsci.edu> | 2012-12-28 21:24:23 +0000 |
commit | 1d14f14987ba5ce32c7b6ee5d9be98c66ecf137b (patch) | |
tree | 5a8da0673f36c308147bd776c6f6476abbd6d11c | |
parent | e5b049f72d9591b49640ca739bba6a31e55bb2f7 (diff) | |
download | pbr-1d14f14987ba5ce32c7b6ee5d9be98c66ecf137b.tar.gz |
debugging auto builds
git-svn-id: https://svn.stsci.edu/svn/ssb/stsci_python/d2to1/trunk@21160 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r-- | pbr/d2to1/util.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pbr/d2to1/util.py b/pbr/d2to1/util.py index 300388a..e3aaae6 100644 --- a/pbr/d2to1/util.py +++ b/pbr/d2to1/util.py @@ -98,12 +98,18 @@ def resolve_name(name): if len(parts) != 2 : raise ImportError('looking for name in the form module.object in "%s"'% name) - exec "import %s as m" % parts[0] + s = "import %s as m" % parts[0] + print "d2to1 exec",s + exec s try : - exec "v = m.%s"%parts[1] + s = "v = m.%s"%parts[1] + print "d2to1 exec",s + exec s except AttributeError : raise ImportError('object %s not found in %s'%(parts[1],parts[0])) + + print "d2to1 resolved name ok",v return v |