Skip to content

Commit 418d34e

Browse files
committed
1 parent 36c3734 commit 418d34e

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__setitem__(py.String(key_value[0]), py.String(key_value[1]))
5252
}
5353

0 commit comments

Comments
 (0)