test_env.py
def copy_into_site_packages():
    """Copy atf, PO into folder site-packages"""

    site_packages = [path for path in sys.path if 'site-packages' in path][0]
    try:
        shutil.copytree(os.path.join(TMP_FOLDER, 'atf'), os.path.join(site_packages, 'atf'))
        shutil.copytree(os.path.join(TMP_FOLDER, 'tests', 'module_genie'), os.path.join(site_packages, 'module_genie'))
        shutil.copytree(os.path.join(TMP_FOLDER, 'tests', 'pages'), os.path.join(site_packages, 'pages'))
    except FileExistsError:
        pass
Copy atf, PO into folder site-packages
Copy atf, PO into folder site-packages
Copy atf PO into folder site - packages
def copy_into_site_packages():
    site_packages = [path for path in sys.path if 'site-packages' in path][0]
    try:
        shutil.copytree(os.path.join(TMP_FOLDER, 'atf'), os.path.join(site_packages, 'atf'))
        shutil.copytree(os.path.join(TMP_FOLDER, 'tests', 'module_genie'), os.path.join(site_packages, 'module_genie'))
        shutil.copytree(os.path.join(TMP_FOLDER, 'tests', 'pages'), os.path.join(site_packages, 'pages'))
    except FileExistsError:
        pass
def copy_into_site_packages ( ) : site_packages = [ path for path in sys . path if 'site-packages' in path ] [ 0 ] try : shutil . copytree ( os . path . join ( TMP_FOLDER , 'atf' ) , os . path . join ( site_packages , 'atf' ) ) shutil . copytree ( os . path . join ( TMP_FOLDER , 'tests' , 'module_genie' ) , os . path . join ( site_packages , 'module_genie' ) ) shutil . copytree ( os . path . join ( TMP_FOLDER , 'tests' , 'pages' ) , os . path . join ( site_packages , 'pages' ) ) except FileExistsError : pass
Copy atf, PO into folder site-packages
Copy atf PO into folder site - packages
"""Copy atf, PO into folder site-packages"""