def main(): extra_options = __get_extra_options() (options, args) = __get_arguments() sys.path.insert(0, os.curdir) if args: provyfile_name = args[0] else: provyfile_name = "provyfile.py" provyfile_path = __get_provy_file_path(provyfile_name) if not provyfile_path: provyfile_path = __get_provy_file_path("provy_file.py") if options.server is None and provyfile_path: # TODO: Improve this code to 'find' the set of servers defined in the # provyfile and run with the defined server set (if only one is defined) print "\nInfo: Provy is running using the 'test' set of servers.\n" options.server = "test" if not provyfile_path: print "The file %s could not be found!" % provyfile_name sys.exit(1) run(provyfile_path, options.server, options.password, extra_options) sys.exit(0)
def main(): extra_options = __get_extra_options() (options, args) = __get_arguments() sys.path.insert(0, os.curdir) if args: provyfile_name = args[0] else: provyfile_name = 'provyfile.py' provyfile_path = __get_provy_file_path(provyfile_name) if not provyfile_path: provyfile_path = __get_provy_file_path('provy_file.py') if options.server is None and provyfile_path: # TODO: Improve this code to 'find' the set of servers defined in the # provyfile and run with the defined server set (if only one is defined) print "\nInfo: Provy is running using the 'test' set of servers.\n" options.server = 'test' if not provyfile_path: print "The file %s could not be found!" % provyfile_name sys.exit(1) run(provyfile_path, options.server, options.password, extra_options) sys.exit(0)
def main(): sys.path.insert(0, os.curdir) extra_options = __get_extra_options() (options, args) = __get_arguments() provyfile_path = provyfile_path_from(args) if options.server is None and provyfile_path: # TODO: Improve this code to 'find' the set of servers defined in the # provyfile and run with the defined server set (if only one is defined) print "\nInfo: Provy is running using the 'test' set of servers.\n" options.server = 'test' run(provyfile_path, options.server, options.password, extra_options)
def main(): extra_options = __get_extra_options() (options, args) = __get_arguments() sys.path.insert(0, os.curdir) if args: provyfile_name = args[0] else: provyfile_name = 'provyfile.py' provyfile_path = __get_provy_file_path(provyfile_name) if not provyfile_path: provyfile_path = __get_provy_file_path('provy_file.py') if not provyfile_path: print "The file %s could not be found!" % provyfile_name sys.exit(1) run(provyfile_path, options.server, options.password, extra_options) sys.exit(0)