tasks/rtloader.py
def clean(_):
    """
    Clean up CMake's cache.
    Necessary when the paths to some libraries found by CMake (for example Python) have changed on the system.
    """
    dev_path = get_dev_path()
    include_path = os.path.join(dev_path, "include")
    lib_path = os.path.join(dev_path, "lib")
    rtloader_build_path = get_rtloader_build_path()

    for p in [include_path, lib_path, rtloader_build_path]:
        try:
            shutil.rmtree(p)
            print(f"Successfully cleaned '{p}'")
        except FileNotFoundError:
            print(f"Nothing to clean up '{p}'")

    Clean up CMake's cache.
    Necessary when the paths to some libraries found by CMake (for example Python) have changed on the system.
    
Clean up CMake's cache.
Necessary when the paths to some libraries found by CMake (for example Python) have changed on the system.
Clean up CMake ' s cache . Necessary when the paths to some libraries found by CMake ( for example Python ) have changed on the system .
def clean(_):
    dev_path = get_dev_path()
    include_path = os.path.join(dev_path, "include")
    lib_path = os.path.join(dev_path, "lib")
    rtloader_build_path = get_rtloader_build_path()
    for p in [include_path, lib_path, rtloader_build_path]:
        try:
            shutil.rmtree(p)
            print(f"Successfully cleaned '{p}'")
        except FileNotFoundError:
            print(f"Nothing to clean up '{p}'")
def clean ( _ ) : dev_path = get_dev_path ( ) include_path = os . path . join ( dev_path , "include" ) lib_path = os . path . join ( dev_path , "lib" ) rtloader_build_path = get_rtloader_build_path ( ) for p in [ include_path , lib_path , rtloader_build_path ] : try : shutil . rmtree ( p ) print ( f"Successfully cleaned '{p}'" ) except FileNotFoundError : print ( f"Nothing to clean up '{p}'" )
Clean up CMake's cache.
Clean up CMake ' s cache .
"""
    Clean up CMake's cache.
    Necessary when the paths to some libraries found by CMake (for example Python) have changed on the system.
    """
_