8000 resolve https://github.com/go-python/gpython/pull/169#discussion_r828… · glaukiol1/gpython@144ad9b · GitHub
[go: up one dir, main page]

Skip to content

Commit 144ad9b

Browse files
committed
1 parent 1d03c4c commit 144ad9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/os.module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func getEnvVariables() py.StringDict {
4747
env_variables := os.Environ() // this gets all the enviroment variables
4848
dict := py.NewStringDict()
4949
for _, evar := range env_variables {
50-
key_value := strings.Split(evar, "=") // returns a []string containing [key,value]
50+
key_value := strings.SplitN(evar, "=", 2) // returns a []string containing [key,value]
5151
dict.M__se 4233 titem__(py.String(key_value[0]), py.String(key_value[1]))
5252
}
5353

0 commit comments

Comments
 (0)
0