Revert adding printenv to linux folder.
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Thu, 29 Sep 2016 10:50:24 +0000 (12:50 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Thu, 29 Sep 2016 10:50:24 +0000 (12:50 +0200)
bin/linux/printenv.py [deleted file]

diff --git a/bin/linux/printenv.py b/bin/linux/printenv.py
deleted file mode 100755 (executable)
index a60959c..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-
-# Dumps environment variables into specified file.
-# Format: zero-separated "name=value" pairs in platform encoding.
-
-import os
-import sys
-
-if len(sys.argv) != 2:
-    raise Exception('Exactly one argument expected')
-
-f = open(sys.argv[1], 'wb')
-try:
-    for key, value in os.environ.items():
-        s = '%s=%s\0' % (key, value)
-        f.write(s.encode('utf-8'))
-finally:
-    f.close()