  import sys
  
  from os import path
  from threading import Thread
  
  from lib.cli import FullPaths
  from lib.Serializer import JSONSerializer
 
</s> remove from os import environ, path
 </s> add from os import path </s> remove     # Check whether there is a display to output the GUI '''
    if not environ.get('DISPLAY', None):
 </s> add     # Check whether there is a display to output the GUI. If running on Windows
    # then assume not running in headless mode
    if not os.environ.get('DISPLAY', None) and os.name != 'nt':
import os
  import sys
import os
  
  from os import path
  from threading import Thread
  
  from lib.cli import FullPaths
  from lib.Serializer import JSONSerializer
add keep keep keep keep keep keep
 Fix GUI check for Windows non-use of DISPLAY environment variable (#338) 
scripts/gui.py