setup.py
def install_services(copy=False):
    """
    This function install all services in a proper folder and setup the deamons
    """
    print("System prefix {prefix}".format(prefix=sys.prefix))
    # Make jetson stats folder
    root = sys.prefix + "/local/jetson_stats/"
    if not os.path.exists(root):
        os.makedirs(root)
    # Copy all files
    for f_service in list_services():
        folder, _ = os.path.split(__file__)
        path = root + os.path.basename(f_service)
        # remove if exist file
        if os.path.exists(path):
            os.remove(path)
        # Copy or link file
        if copy:
            type_service = "Copying"
            copyfile(folder + "/" + f_service, path)
        else:
            type_service = "Linking"
            os.symlink(folder + "/" + f_service, path)
        # Prompt message
        print("{type} {file} -> {path}".format(type=type_service, file=os.path.basename(f_service), path=path))

    This function install all services in a proper folder and setup the deamons
    
This function install all services in a proper folder and setup the deamons
This function install all services in a proper folder and setup the deamons
def install_services(copy=False):
    print("System prefix {prefix}".format(prefix=sys.prefix))
    root = sys.prefix + "/local/jetson_stats/"
    if not os.path.exists(root):
        os.makedirs(root)
    for f_service in list_services():
        folder, _ = os.path.split(__file__)
        path = root + os.path.basename(f_service)
        if os.path.exists(path):
            os.remove(path)
        if copy:
            type_service = "Copying"
            copyfile(folder + "/" + f_service, path)
        else:
            type_service = "Linking"
            os.symlink(folder + "/" + f_service, path)
        print("{type} {file} -> {path}".format(type=type_service, file=os.path.basename(f_service), path=path))
def install_services ( copy = False ) : print ( "System prefix {prefix}" . format ( prefix = sys . prefix ) ) root = sys . prefix + "/local/jetson_stats/" if not os . path . exists ( root ) : os . makedirs ( root ) for f_service in list_services ( ) : folder , _ = os . path . split ( __file__ ) path = root + os . path . basename ( f_service ) if os . path . exists ( path ) : os . remove ( path ) if copy : type_service = "Copying" copyfile ( folder + "/" + f_service , path ) else : type_service = "Linking" os . symlink ( folder + "/" + f_service , path ) print ( "{type} {file} -> {path}" . format ( type = type_service , file = os . path . basename ( f_service ) , path = path ) )
This function install all services in a proper folder and setup the deamons
This function install all services in a proper folder and setup the deamons
"""
    This function install all services in a proper folder and setup the deamons
    """ # Make jetson stats folder # Copy all files # remove if exist file # Copy or link file # Prompt message
copy