install.py

changeset 5651
982465f8389c
parent 5628
3a1bef0560b1
child 5652
d1b65f380408
equal deleted inserted replaced
5650:4c52f07c186e 5651:982465f8389c
423 os.chmod(wname, 0o755) 423 os.chmod(wname, 0o755)
424 424
425 return wname 425 return wname
426 426
427 427
428 def copyTree(src, dst, filters, excludeDirs=[], excludePatterns=[]): 428 def copyTree(src, dst, filters, excludeDirs=None, excludePatterns=None):
429 """ 429 """
430 Copy Python, translation, documentation, wizards configuration, 430 Copy Python, translation, documentation, wizards configuration,
431 designer template files and DTDs of a directory tree. 431 designer template files and DTDs of a directory tree.
432 432
433 @param src name of the source directory 433 @param src name of the source directory
435 @param filters list of filter pattern determining the files to be copied 435 @param filters list of filter pattern determining the files to be copied
436 @param excludeDirs list of (sub)directories to exclude from copying 436 @param excludeDirs list of (sub)directories to exclude from copying
437 @keyparam excludePatterns list of filter pattern determining the files to 437 @keyparam excludePatterns list of filter pattern determining the files to
438 be skipped 438 be skipped
439 """ 439 """
440 if excludeDirs is None:
441 excludeDirs = []
442 if excludePatterns is None:
443 excludePatterns = []
440 try: 444 try:
441 names = os.listdir(src) 445 names = os.listdir(src)
442 except OSError: 446 except OSError:
443 # ignore missing directories (most probably the i18n directory) 447 # ignore missing directories (most probably the i18n directory)
444 return 448 return

eric ide

mercurial