# 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
    create_file(os.path.join(project_dir, ".wtf_root_folder"), _root_folder_placeholder_.contents)
    
    #create runtest script.
    runtests_path = os.path.join(project_dir, "runtests.py")
    create_file(runtests_path, _runtests_py_.contents)
    # make file executable
    os.chmod(runtests_path, 0755)
    
    #create asset folder
    ensure_dir(os.path.join(project_dir, "assets"))

    #create asset folder
    ensure_dir(os.path.join(project_dir,"data"))
    
    #create configs
    ensure_dir(os.path.join(project_dir,"configs"))
    #create default config file
    create_file(os.path.join(project_dir,"configs", "default.yaml"), _default_yaml_.contents)
    
    #create reference screenshots dir.
    ensure_dir(os.path.join(project_dir, "reference-screenshots"))
    
    #create reports dir
    ensure_dir(os.path.join(project_dir,"reports"))
    
    #create screenshots dir
    ensure_dir(os.path.join(project_dir,"screenshots"))
    
    #create tests dir
    ensure_dir(os.path.join(project_dir,"tests"))

# 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

    create_file(os.path.join(project_dir, ".wtf_root_folder"), _root_folder_placeholder_.contents)
    
    #create runtest script.
    runtests_path = os.path.join(project_dir, "runtests.py")
    create_file(runtests_path, _runtests_py_.contents)
    # make file executable
    os.chmod(runtests_path, 0755)
    
    #create asset folder
    ensure_dir(os.path.join(project_dir, "assets"))

    #create asset folder
    ensure_dir(os.path.join(project_dir,"data"))
    
    #create configs
    ensure_dir(os.path.join(project_dir,"configs"))
    #create default config file
    create_file(os.path.join(project_dir,"configs", "default.yaml"), _default_yaml_.contents)
    
    #create reference screenshots dir.
    ensure_dir(os.path.join(project_dir, "reference-screenshots"))
    
    #create reports dir
    ensure_dir(os.path.join(project_dir,"reports"))
    
    #create screenshots dir
    ensure_dir(os.path.join(project_dir,"screenshots"))
    
    #create tests dir
    ensure_dir(os.path.join(project_dir,"tests"))

    create_file(os.path.join(project_dir,"tests", "__init__.py"), "'Top level tests folder.  Organize your items in the subfolders below.'")