__init__.py (7677:c6e283904437) | __init__.py (13671:b288ca1bcae8) |
---|---|
1# Copyright (c) 2010 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 22 unchanged lines hidden (view full) --- 31 32try: 33 modules = __loader__.modules 34except NameError: 35 modules = { } 36 37for module in modules.iterkeys(): 38 if module.startswith('m5.objects.'): | 1# Copyright (c) 2010 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 22 unchanged lines hidden (view full) --- 31 32try: 33 modules = __loader__.modules 34except NameError: 35 modules = { } 36 37for module in modules.iterkeys(): 38 if module.startswith('m5.objects.'): |
39 exec "from %s import *" % module | 39 exec("from %s import *" % module) |