pub fn working_directory(&self, default: &Path, wd: &Option<PathBuf>) -> PathBuf {
        // println!(">>>");
        // println!("Default directory: {:?}", default);
        // println!("Specified wd: {:?}", wd);
        // println!("Jig directory: {:?}", self.jig_working_directory.borrow());
        // println!("Scenario directory: {:?}", self.scenario_working_directory.borrow());
        // println!("<<<");
        let mut p = default.to_owned();
        if let Some(jwd) = &*self.jig_working_directory.borrow() {
            p.push(jwd);
        }
        if let Some(swd) = &*self.scenario_working_directory.borrow() {
            p.push(swd);
        }
        if let Some(wd) = wd {
            p.push(wd);
        }
        match p.canonicalize() {
            Ok(x) => x,
            Err(_) => p,
        }
    }
/// Return a working directory composed of the unit's directory,
/// the jig working directory, and the scenario working directory.

Return a working directory composed of the unit's directory,
the jig working directory, and the scenario working directory.
Return a working directory composed of the unit ' s directory the jig working directory and the scenario working directory .
pub fn working_directory(&self, default: &Path, wd: &Option<PathBuf>) -> PathBuf {
        // println!(">>>");
        // println!("Default directory: {:?}", default);
        // println!("Specified wd: {:?}", wd);
        // println!("Jig directory: {:?}", self.jig_working_directory.borrow());
        // println!("Scenario directory: {:?}", self.scenario_working_directory.borrow());
        // println!("<<<");
        let mut p = default.to_owned();
        if let Some(jwd) = &*self.jig_working_directory.borrow() {
            p.push(jwd);
        }
        if let Some(swd) = &*self.scenario_working_directory.borrow() {
            p.push(swd);
        }
        if let Some(wd) = wd {
            p.push(wd);
        }
        match p.canonicalize() {
            Ok(x) => x,
            Err(_) => p,
        }
    }
pub fn working_directory ( & self , default : & Path , wd : & Option < PathBuf > ) -> PathBuf { // println!(">>>");
 // println!("Default directory: {:?}", default);
 // println!("Specified wd: {:?}", wd);
 // println!("Jig directory: {:?}", self.jig_working_directory.borrow());
 // println!("Scenario directory: {:?}", self.scenario_working_directory.borrow());
 // println!("<<<");
 let mut p = default . to_owned ( ) ; if let Some ( jwd ) = & * self . jig_working_directory . borrow ( ) { p . push ( jwd ) ; } if let Some ( swd ) = & * self . scenario_working_directory . borrow ( ) { p . push ( swd ) ; } if let Some ( wd ) = wd { p . push ( wd ) ; } match p . canonicalize ( ) { Ok ( x ) => x , Err ( _ ) => p , } }
Return a working directory composed of the unit's directory,
the jig working directory, and the scenario working directory.
Return a working directory composed of the unit ' s directory the jig working directory and the scenario working directory .
&self
default
&Path
wd
&Option<PathBuf>
&self
default
&Path
wd
&Option<PathBuf>