]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: assume that the installer is run from the repo root in debug mode
authorChristoph Heiss <c.heiss@proxmox.com>
Wed, 21 Jun 2023 09:44:01 +0000 (11:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 10:20:41 +0000 (12:20 +0200)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs

index 510807a32323b3735da51ca46bbd02fcbb29a1e0..0b1839bf2703764c65583813a63d7de9ed1cb008 100644 (file)
@@ -677,11 +677,9 @@ fn install_progress_dialog(siv: &mut Cursive) -> InstallerView {
 
                 #[cfg(debug_assertions)]
                 let (path, args, envs) = (
-                    PathBuf::from("../proxmox-low-level-installer")
-                        .canonicalize()
-                        .unwrap(),
-                    ["-t", "start-session"],
-                    [("PERL5LIB", PathBuf::from("..").canonicalize().unwrap())],
+                    PathBuf::from("./proxmox-low-level-installer"),
+                    ["-t", "start-session-test"],
+                    [("PERL5LIB", ".")],
                 );
 
                 Command::new(path)