Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
[build]
command = "mkdocs build"
command = "python -m mkdocs build"
publish = "site"

[[redirects]]
from = "http://python-launcher.app/*"
to = " https://pythoncode.run/:splat"
status = 301
force = true

[[redirects]]
from = "https://python-launcher.app/*"
to = " https://pythoncode.run/:splat"
status = 301
force = true
4 changes: 2 additions & 2 deletions tests/cli_system_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn from_main_by_flag() {
let _working_dir = common::CurrentDir::new();
let env_state = common::EnvState::new();
let launcher_location = "/path/to/py".to_string();
let no_argv = Action::from_main(&[launcher_location.clone()]);
let no_argv = Action::from_main(std::slice::from_ref(&launcher_location));

match no_argv {
Ok(Action::Execute {
Expand Down Expand Up @@ -259,7 +259,7 @@ fn from_main_env_var() {
env_state.env_vars.change("PY_PYTHON", Some("3.6"));
let launcher_location = "/path/to/py".to_string();

match Action::from_main(&[launcher_location.clone()]) {
match Action::from_main(std::slice::from_ref(&launcher_location)) {
Ok(Action::Execute {
launcher_path,
executable,
Expand Down
Loading