def submit(DIR):
    import cmaDir
    text_file = open("cmadir.txt", "w+")
    text_file.write(DIR)
    text_file.close()
    cmaDir.close_window(root)
    sys.stdout.flush()
def browse():
    import cmaDir
    text_file = open("cmadir.txt", "w+")
    text_file.write(tkFileDialog.askdirectory(title="CMA Directory"))
    text_file.close()
    cmaDir.close_window(root)
    sys.stdout.flush()
def auto():
    import cmaDir
    defs.autoCMA()
    path = defs.getCmaDir()
    cmaDir.close_window(root)
    tkMessageBox.showinfo(title="Cma Directory",
                          message="Detected: [" + path + "]!")

    sys.stdout.flush()