From 4bc980cc144975b11e4e648e9fa7a77947bfe8df Mon Sep 17 00:00:00 2001 From: Camille GOUTTEBROZE Date: Tue, 9 Dec 2014 11:59:46 +0100 Subject: [PATCH] Check the option for script src/AppQuickStart/app-quickstart.py --- src/AppQuickStart/app-quickstart.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/AppQuickStart/app-quickstart.py b/src/AppQuickStart/app-quickstart.py index 4fb31e6a6..8567a67aa 100755 --- a/src/AppQuickStart/app-quickstart.py +++ b/src/AppQuickStart/app-quickstart.py @@ -260,13 +260,9 @@ if __name__ == '__main__': if not options.name : raise RuntimeError( "A name must be given to the application. Please use option --name." ) - #Check that no modules has the name of the application - if options.name in options.modules.split( ',' ) : - raise RuntimeError( "An application cannnot be named like one of its modules.\nWhat about naming your application %sIS (%s In Salome) ?" %( options.name,options.name ) ) - - #Check if the prefix is a directory - if not os.path.isdir( options.prefix ) : - raise RuntimeError( "%s is not a directory." % options.prefix ) + #Check if the prefix's parent is a directory + if not os.path.isdir( os.path.dirname( options.prefix ) ) : + raise RuntimeError( "%s is not a directory." % os.path.dirname( options.prefix ) ) #Generate sources of the profile profileGenerateSources( options, args ) -- 2.39.2