summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Compat.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-31 08:52:32 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-31 09:03:34 -0400
commit3c4a38dc2fdef403dc39e3f7b99ebc5b901184c7 (patch)
tree311274b9a6094bca4c4c42b3a154b581d364acca /src/lib/Bcfg2/Compat.py
parent96c492953db706df8e2e7be938b9be2bd4e442af (diff)
downloadbcfg2-3c4a38dc2fdef403dc39e3f7b99ebc5b901184c7.tar.gz
bcfg2-3c4a38dc2fdef403dc39e3f7b99ebc5b901184c7.tar.bz2
bcfg2-3c4a38dc2fdef403dc39e3f7b99ebc5b901184c7.zip
fixed walk_packages implementation for py2.4
Diffstat (limited to 'src/lib/Bcfg2/Compat.py')
-rw-r--r--src/lib/Bcfg2/Compat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Compat.py b/src/lib/Bcfg2/Compat.py
index 820dd9d1e..74f660216 100644
--- a/src/lib/Bcfg2/Compat.py
+++ b/src/lib/Bcfg2/Compat.py
@@ -172,6 +172,8 @@ except ImportError:
for item in walk_packages(path, name + '.', onerror):
yield item
except ImportError:
+ import os
+
def walk_packages(path=None, prefix='', onerror=None):
""" imperfect, incomplete implementation of
walk_packages() for python 2.4. Differences: