(path=RULES_FILE_PATH)
Generates and write the udev rules file at the given place.

    :param str path: The path of the output file.

    :raise PermissionError: The user has not sufficient permissions to write
                            the file.
Generates and write the udev rules file at the given place.
Generates and write the udev rules file at the given place .
def write_rules_file(path=RULES_FILE_PATH):
    """Generates and write the udev rules file at the given place.

    :param str path: The path of the output file.

    :raise PermissionError: The user has not sufficient permissions to write
                            the file.
    """
    path = str(path)  # py27 compatibility: coerce PosixPath to string
    rules = generate_rules()
    with open(path, "w") as rules_file:
        rules_file.write(rules)
def write_rules_file ( path = RULES_FILE_PATH ) : path = str ( path ) # py27 compatibility: coerce PosixPath to string rules = generate_rules ( ) with open ( path , "w" ) as rules_file : rules_file . write ( rules )