tiled.config.direct_access¶
- tiled.config.direct_access(config, source_filepath=None)[source]¶
Return the server-side Adapter object defined by a configuration.
- Parameters:
- configstr or dict
May be:
Path to config file
Path to directory of config files
Dict of config
Examples
From config file:
>>> from_config("path/to/file.yml")
From directory of config files:
>>> from_config("path/to/directory")
From configuration given directly, as dict:
>>> from_config( { "trees": [ "path": "/", "tree": "tiled.files.DirectoryAdapter.from_directory", "args": {"diretory": "path/to/files"} ] } )