We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d03c4c commit 144ad9bCopy full SHA for 144ad9b
os/os.module.go
@@ -47,7 +47,7 @@ func getEnvVariables() py.StringDict {
47
env_variables := os.Environ() // this gets all the enviroment variables
48
dict := py.NewStringDict()
49
for _, evar := range env_variables {
50
- key_value := strings.Split(evar, "=") // returns a []string containing [key,value]
+ key_value := strings.SplitN(evar, "=", 2) // returns a []string containing [key,value]
51
dict.M__setitem__(py.String(key_value[0]), py.String(key_value[1]))
52
}
53
0 commit comments