Skip to content

Commit 8b3bf55

Browse files
authored
Introduce PyConfig to implement Paths correctly (#6461)
* getpath * introduce PyConfig * landmark in getpath
1 parent 09fa97d commit 8b3bf55

File tree

16 files changed

+487
-162
lines changed

16 files changed

+487
-162
lines changed

.cspell.dict/cpython.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ numer
4343
orelse
4444
pathconfig
4545
patma
46+
platstdlib
4647
posonlyarg
4748
posonlyargs
4849
prec

crates/stdlib/src/syslog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mod syslog {
2626
use libc::{LOG_AUTHPRIV, LOG_CRON, LOG_PERROR};
2727

2828
fn get_argv(vm: &VirtualMachine) -> Option<PyStrRef> {
29-
if let Some(argv) = vm.state.settings.argv.first()
29+
if let Some(argv) = vm.state.config.settings.argv.first()
3030
&& !argv.is_empty()
3131
{
3232
return Some(

0 commit comments

Comments
 (0)