# Function `kurogane::resource_dir`

```rust
pub fn resource_dir() -> Option<PathBuf>
```

The directory a packaged application's bundled resources live in.

Returns `None` when the application is not running from a recognised
bundle or its executable path cannot be resolved.

```rust
let config = match kurogane::resource_dir() {
    Some(resources) => resources.join("config.toml"),
    None => std::path::PathBuf::from("config.toml"),
};
```

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/resources.rs#L16
