# Path: sfc_models/examples/install_example_scripts.py
# def install(target_dir):   # pragma: no cover


import sys
    import tkMessageBox as mbox
    import tkFileDialog as fdog
    import tkinter as tk
    import tkinter.messagebox as mbox
    import tkinter.filedialog as fdog
    from tkinter import *
from sfc_models.examples import install_example_scripts
"""
from __future__ import print_function

if sys.version_info[0] < 3: # pragma: no cover  (Do coverage test in 3.x)
    # import Tkinter as tk
    # from Tkinter import *
else:


validate_str = """
This command will install sfc_models to a directory that you specify. It will also create a sub-directory named "output" (which is where log files are directed).

It will not overwrite existing files; it is recommended that you clear out your local copy of the examples directory before installing an updated examples set.
"""


def install_examples(): # pragma: no cover
    """
    Pops up windows to allow the user to choose a directory for installation
    of sfc_models examples.

    Uses tkinter, which is installed in base Python (modern versions).
    :return:
    """
    if not mbox.askokcancel(title='sfc_models Example Installation',
                            message=validate_str):
        return
    target = fdog.askdirectory(title='Choose directory to for sfc_models examples installation')
    if target == () or target == '':
        return

# Path: sfc_models/examples/install_example_scripts.py
# def install(target_dir):   # pragma: no cover


# Path: sfc_models/examples/install_examples.py
import sys
    import tkMessageBox as mbox
    import tkFileDialog as fdog
    import tkinter as tk
    import tkinter.messagebox as mbox
    import tkinter.filedialog as fdog
    from tkinter import *
from sfc_models.examples import install_example_scripts

"""
from __future__ import print_function

if sys.version_info[0] < 3: # pragma: no cover  (Do coverage test in 3.x)
    # import Tkinter as tk
    # from Tkinter import *
else:


validate_str = """
This command will install sfc_models to a directory that you specify. It will also create a sub-directory named "output" (which is where log files are directed).

It will not overwrite existing files; it is recommended that you clear out your local copy of the examples directory before installing an updated examples set.
"""


def install_examples(): # pragma: no cover
    """
    Pops up windows to allow the user to choose a directory for installation
    of sfc_models examples.

    Uses tkinter, which is installed in base Python (modern versions).
    :return:
    """
    if not mbox.askokcancel(title='sfc_models Example Installation',
                            message=validate_str):
        return
    target = fdog.askdirectory(title='Choose directory to for sfc_models examples installation')
    if target == () or target == '':
        return

    install_example_scripts.install(target)