Skip to content

Commit d327fa6

Browse files
committed
properly handling env variable
1 parent 59f7806 commit d327fa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonFiles/PythonTools/ipythonServer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
except ImportError:
5555
from queue import Empty, Queue # Python 3
5656

57-
DEBUG = os.environ.get('DEBUG_DJAYAMANNE_IPYTHON') is not None
58-
TEST = os.environ.get('PYTHON_DONJAYAMANNE_TEST') is not None
57+
DEBUG = os.environ.get('DEBUG_DJAYAMANNE_IPYTHON', '0') == '1'
58+
TEST = os.environ.get('PYTHON_DONJAYAMANNE_TEST', '0') == '1'
5959

6060
# The great "support IPython 2, 3, 4" strat begins
6161
if not TEST:

0 commit comments

Comments
 (0)