]>
Commit | Line | Data |
---|---|---|
99be8844 DM |
1 | //! Exports configuration data from the build system |
2 | ||
3 | /// The configured configuration directory | |
9f4962d3 WB |
4 | pub const CONFIGDIR: &'static str = env!("PROXMOX_CONFIGDIR"); |
5 | ||
99be8844 DM |
6 | /// Prepend configuration directory to a file name |
7 | /// | |
8 | /// This is a simply way to get the full path for configuration files. | |
9 | /// #### Example: | |
10 | /// ``` | |
11 | /// # #[macro_use] extern crate proxmox_backup; | |
12 | /// let cert_path = configdir!("/proxy.pfx"); | |
13 | /// ``` | |
9f4962d3 WB |
14 | #[macro_export] |
15 | macro_rules! configdir { | |
16 | ($subdir:expr) => (concat!(env!("PROXMOX_CONFIGDIR"), $subdir)) | |
17 | } |