def fix_env():
 if sabnzbd.DARWIN:
  env = os.environ.copy()
  if ('PYTHONPATH' in env):
   del env['PYTHONPATH']
  if ('PYTHONHOME' in env):
   del env['PYTHONHOME']
  return env
 else:
  return None

def fix_env ( ) : if sabnzbd . DARWIN : env = os . environ . copy ( ) if ( 'PYTHONPATH' in env ) : del env [ 'PYTHONPATH' ] if ( 'PYTHONHOME' in env ) : del env [ 'PYTHONHOME' ] return env else : return None
osx: return copy of environment without pythonpath and pythonhome other: return none .