Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Jun 25, 2023
1 parent 9077d4c commit 1dbb416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ fn set_project_dependency_file(dependency_file: &str) {

set_runtime_variable(
"PYAPP_PROJECT_DEPENDENCY_FILE",
STANDARD_NO_PAD.encode(contents.as_bytes()),
STANDARD_NO_PAD.encode(contents),
);
set_runtime_variable("PYAPP__PROJECT_DEPENDENCY_FILE_NAME", file_name);
}
Expand Down Expand Up @@ -672,7 +672,7 @@ fn set_execution_mode() {
format!("import {module};{module}.{object}()"),
);
} else if !code.is_empty() {
set_runtime_variable(code_variable, &code);
set_runtime_variable(code_variable, STANDARD_NO_PAD.encode(&code));
} else {
set_runtime_variable(
module_variable,
Expand Down

0 comments on commit 1dbb416

Please sign in to comment.