IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Improved CopyStep

tags/0.92
parent
commit
4eae79f6ab
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      steps.py

+ 2
- 4
steps.py View File

@@ -60,10 +60,8 @@ class CopyStep(object):
lst = [ self.spec ] \ lst = [ self.spec ] \
if not isinstance(self.spec[0], list) \ if not isinstance(self.spec[0], list) \
else self.spec else self.spec
for a in lst:
source, target = a
if target.startswith('/'):
target = target[1:]
for (source, target) in lst:
target = target.strip('/')
shutil.copyfile(os.path.join(kwargs['args'].focker_dir, source), shutil.copyfile(os.path.join(kwargs['args'].focker_dir, source),
os.path.join(path, target)) os.path.join(path, target))


Loading…
Cancel
Save