luaprettydoc/luafile.py
def debug_export(self, visitor: Visitor, filepath: Path) -> None:
        """Exports the Lua File to YAML for debug purposes"""

        __directory = Path(LuaFile.TestFilePath)
        if filepath.parent.name != Path().cwd().name:
            __directory = Path(
                f"{LuaFile.TestFilePath}/{filepath.parent.name}")

        __directory.mkdir(parents=True, exist_ok=True)
        __output = __directory / filepath.with_suffix('.yml').name

        with open(__output, "w") as file:
            file.write(visitor.dump_data())
Exports the Lua File to YAML for debug purposes
Exports the Lua File to YAML for debug purposes
Exports the Lua File to YAML for debug purposes
def debug_export(self, visitor: Visitor, filepath: Path) -> None:
        __directory = Path(LuaFile.TestFilePath)
        if filepath.parent.name != Path().cwd().name:
            __directory = Path(
                f"{LuaFile.TestFilePath}/{filepath.parent.name}")
        __directory.mkdir(parents=True, exist_ok=True)
        __output = __directory / filepath.with_suffix('.yml').name
        with open(__output, "w") as file:
            file.write(visitor.dump_data())
def debug_export ( self , visitor : Visitor , filepath : Path ) -> None : __directory = Path ( LuaFile . TestFilePath ) if filepath . parent . name != Path ( ) . cwd ( ) . name : __directory = Path ( f"{LuaFile.TestFilePath}/{filepath.parent.name}" ) __directory . mkdir ( parents = True , exist_ok = True ) __output = __directory / filepath . with_suffix ( '.yml' ) . name with open ( __output , "w" ) as file : file . write ( visitor . dump_data ( ) )
Exports the Lua File to YAML for debug purposes
Exports the Lua File to YAML for debug purposes
"""Exports the Lua File to YAML for debug purposes"""
self
visitor
Visitor
filepath
Path