comparison roundup/init.py @ 70:d95a03480fd1

oops. left a print in
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Tue, 24 Jul 2001 11:18:25 +0000
parents 0eed07d99b98
children 2ab86442799a
comparison
equal deleted inserted replaced
69:0eed07d99b98 70:d95a03480fd1
1 # $Id: init.py,v 1.5 2001-07-24 10:54:11 anthonybaxter Exp $ 1 # $Id: init.py,v 1.6 2001-07-24 11:18:25 anthonybaxter Exp $
2 2
3 import os, shutil, sys 3 import os, shutil, sys
4 4
5 def copytree(src, dst, symlinks=0): 5 def copytree(src, dst, symlinks=0):
6 """Recursively copy a directory tree using copy2(). 6 """Recursively copy a directory tree using copy2().
16 16
17 """ 17 """
18 names = os.listdir(src) 18 names = os.listdir(src)
19 try: 19 try:
20 os.mkdir(dst) 20 os.mkdir(dst)
21 print "making", dst
22 except OSError, error: 21 except OSError, error:
23 if error.errno != 17: raise 22 if error.errno != 17: raise
24 for name in names: 23 for name in names:
25 srcname = os.path.join(src, name) 24 srcname = os.path.join(src, name)
26 dstname = os.path.join(dst, name) 25 dstname = os.path.join(dst, name)
56 instance = __import__(instance) 55 instance = __import__(instance)
57 instance.init(adminpw) 56 instance.init(adminpw)
58 57
59 # 58 #
60 # $Log: not supported by cvs2svn $ 59 # $Log: not supported by cvs2svn $
60 # Revision 1.5 2001/07/24 10:54:11 anthonybaxter
61 # oops. Html.
62 #
61 # Revision 1.4 2001/07/24 10:46:22 anthonybaxter 63 # Revision 1.4 2001/07/24 10:46:22 anthonybaxter
62 # Added templatebuilder module. two functions - one to pack up the html base, 64 # Added templatebuilder module. two functions - one to pack up the html base,
63 # one to unpack it. Packed up the two standard templates into htmlbases. 65 # one to unpack it. Packed up the two standard templates into htmlbases.
64 # Modified __init__ to install them. 66 # Modified __init__ to install them.
65 # 67 #

Roundup Issue Tracker: http://roundup-tracker.org/