# Path: wtframework/wtf/_devtools_/filetemplates/_default_yaml_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_root_folder_placeholder_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_runtests_py_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_examples_.py



from optparse import OptionParser
from wtframework.wtf._devtools_.filetemplates import _default_yaml_, \
    _root_folder_placeholder_, _runtests_py_, _examples_
import os.path
import wtframework
        print("Creating {0}".format(filepath))
        text_file = open(filepath, "w")
        text_file.write(contents)
        text_file.close()
    else:
        print("{0} already exists.".format(filepath))

################# MAIN SETUP SCRIPT ######################
if __name__ == '__main__':

    # Specify params.
    usage = "usage: %prog NameOfProject [--withexamples]"
    parser = OptionParser(usage=usage)
    parser.add_option("--withexamples", action="store_true",
                      default=False, dest="examples",
                      help="Include example web test.")
    parser.add_option("--version", action="store_true",
                      default=False, dest="version_flag",
                      help="Version info.")

    (options, args) = parser.parse_args()
    
    if(options.version_flag):
        print(wtframework.__VERSION__)
        exit()

    # Handle project directory argument, or prompt to use current directory.
    if len(args) != 1:
        use_cwd = raw_input('Would you like to initialize your wtframework project here: {0}? (Y/n)'.format(os.getcwd()))
        if use_cwd.lower() in ['n', 'no']:

# Path: wtframework/wtf/_devtools_/filetemplates/_default_yaml_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_root_folder_placeholder_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_runtests_py_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_examples_.py



# Path: bin/wtf_init.py
from optparse import OptionParser
from wtframework.wtf._devtools_.filetemplates import _default_yaml_, \
    _root_folder_placeholder_, _runtests_py_, _examples_
import os.path
import wtframework

        print("Creating {0}".format(filepath))
        text_file = open(filepath, "w")
        text_file.write(contents)
        text_file.close()
    else:
        print("{0} already exists.".format(filepath))

################# MAIN SETUP SCRIPT ######################
if __name__ == '__main__':

    # Specify params.
    usage = "usage: %prog NameOfProject [--withexamples]"
    parser = OptionParser(usage=usage)
    parser.add_option("--withexamples", action="store_true",
                      default=False, dest="examples",
                      help="Include example web test.")
    parser.add_option("--version", action="store_true",
                      default=False, dest="version_flag",
                      help="Version info.")

    (options, args) = parser.parse_args()
    
    if(options.version_flag):
        print(wtframework.__VERSION__)
        exit()

    # Handle project directory argument, or prompt to use current directory.
    if len(args) != 1:
        use_cwd = raw_input('Would you like to initialize your wtframework project here: {0}? (Y/n)'.format(os.getcwd()))
        if use_cwd.lower() in ['n', 'no']:

            exit(1)