Skip to content

Commit

Permalink
fix plot.show() Windows
Browse files Browse the repository at this point in the history
Hi, sorry for the last PR updated!!
  • Loading branch information
juanespj committed Jan 8, 2023
1 parent bd3ce35 commit d1f8328
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plotly/src/plot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,8 @@ impl Plot {
fn show_with_default_app(temp_path: &str) {
use std::process::Command;
Command::new("cmd")
.arg("/C")
.arg(format!(r#"start {}"#, temp_path))
.output()
.arg(format!("/Cstart {}", temp_path))
.spawn()
.expect(DEFAULT_HTML_APP_NOT_FOUND);
}
}
Expand Down

0 comments on commit d1f8328

Please sign in to comment.