Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
made log message about usage of CCT cached module clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
rwngwn authored and goldmann committed Jul 3, 2017
1 parent f8951fb commit 7332781
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dogen/plugins/cct.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ def prepare(self, cfg):

os.makedirs(target_modules_dir)

local_modules_dir = os.path.join(os.path.dirname(self.descriptor),'cct')
local_modules_dir = os.path.join(os.path.dirname(self.descriptor), 'cct')
self.log.debug('Found existing modules in directory: %s' % local_modules_dir)
if os.path.exists(local_modules_dir):
for module in os.listdir(local_modules_dir):
self.log.info('Using cached module %s.' % module)
shutil.copytree(os.path.join(local_modules_dir, module),
os.path.join(target_modules_dir, module))
module_path = os.path.join(local_modules_dir, module)
self.log.info("Using cached module '%s' from path '%s'" % (module, module_path))
shutil.copytree(module_path, os.path.join(target_modules_dir, module))

cfg_file = os.path.join(cct_dir, "cct.yaml")
with open(cfg_file, 'w') as f:
Expand Down

0 comments on commit 7332781

Please sign in to comment.