diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-05-03 16:35:45 +0100 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-05-03 16:35:45 +0100 |
commit | 9b15d6f9c6a636baedd7a078d4ab60ed1d733a3b (patch) | |
tree | 8ab6ef487c34976ac1bf31c95c31cddc7bada77c | |
parent | f5b0eb61eb207b2f7a6f88a41c90f74feda331fb (diff) | |
download | kickstarter-9b15d6f9c6a636baedd7a078d4ab60ed1d733a3b.tar.gz kickstarter-9b15d6f9c6a636baedd7a078d4ab60ed1d733a3b.tar.bz2 kickstarter-9b15d6f9c6a636baedd7a078d4ab60ed1d733a3b.zip |
relative external path
-rw-r--r-- | kswriter/KSWriter.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kswriter/KSWriter.py b/kswriter/KSWriter.py index e9e0bea..7db3a62 100644 --- a/kswriter/KSWriter.py +++ b/kswriter/KSWriter.py @@ -131,9 +131,11 @@ class KSWriter(): else: print "%s is inactive, not generating %s at this time" %(img['Name'], img['FileName'] ) for path in self.image_meta['ExternalConfigs']: - for f in os.listdir(path): + external_config_dir = os.path.join(os.path.dirname(self.image_filename), path) + + for f in os.listdir(external_config_dir)): if f.endswith('.yaml'): - fp = file('%s/%s' %(path, f), 'r') + fp = file('%s/%s' %(external_config_dir, f), 'r') local = yaml.load(fp) conf = self.parse(local) if self.config: |