mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] fixes shell environment loading under Python 3 (IDEA-192345)
This commit is contained in:
@@ -12,6 +12,8 @@ if len(sys.argv) != 2:
|
||||
f = open(sys.argv[1], 'w')
|
||||
try:
|
||||
for key, value in os.environ.items():
|
||||
if isinstance(key, unicode): key = key.encode('utf-8')
|
||||
if isinstance(value, unicode): value = value.encode('utf-8')
|
||||
f.writelines([key, '=', value, '\0'])
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
Reference in New Issue
Block a user