Permalink
Browse files

[#905] WAR Packaging : Copy local modules defined by relative path '/..'

  • Loading branch information...
1 parent 9ce5e21 commit 979df57cab146260f09189047595e7f2c46971ab @lhoang lhoang committed with guillaumebort Jun 14, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 framework/pym/play/utils.py
@@ -201,6 +201,11 @@ def copy_directory(source, target, exclude = None):
if not os.path.exists(target):
os.makedirs(target)
for root, dirs, files in os.walk(source):
+ path_from_source = root[len(source):]
+ # Ignore path containing '.' in path
+ # But keep those with relative path '..'
+ if re.search(r'/\.[^\.]|\\\.[^\.]', path_from_source):
+ continue
for file in files:
if root.find('/.') > -1 or root.find('\\.') > -1:
continue

0 comments on commit 979df57

Please sign in to comment.