File: absolute_regular_cwd.rs

package info (click to toggle)
rust-path-abs 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 300 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
mod absolute_helpers;

fn setup() {
    #[cfg(windows)]
    std::env::set_current_dir(r"C:\").expect("Could not change to a regular directory");

    // For cfg(unix), we're always in a regular directory, so we don't need to
    // do anything special.
}