From 60e305d8c754e545f3463ceba6ffd9d1cf40b974 Mon Sep 17 00:00:00 2001 From: Camille GOUTTEBROZE Date: Tue, 16 Sep 2014 14:37:38 +0200 Subject: [PATCH] app-quickstart copies bin/app-template --- bin/app-quickstart.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/app-quickstart.py b/bin/app-quickstart.py index dce0224bb..e839ecd0b 100755 --- a/bin/app-quickstart.py +++ b/bin/app-quickstart.py @@ -71,14 +71,16 @@ def generate_sources( options, args ) : #Check if the directory of the sources already exists if os.path.exists( source_dir ) and not options.force : - print "Directory %s already exsits." %source_dir + print "Directory %s already exists." %source_dir print "Use option --force to overwrite it." return # Create directory if os.path.exists( source_dir ) : shutil.rmtree( source_dir ) - os.makedirs( source_dir ) + template_dir = os.path.join( os.path.dirname(__file__), "app-template" ) + shutil.copytree( template_dir, source_dir ) + #os.makedirs( source_dir ) # ----------------------------------------------------------------------------- -- 2.39.2