equal
deleted
inserted
replaced
1559 function if need.''' |
1559 function if need.''' |
1560 return path.split(pycompat.ossep) |
1560 return path.split(pycompat.ossep) |
1561 |
1561 |
1562 def gui(): |
1562 def gui(): |
1563 '''Are we running in a GUI?''' |
1563 '''Are we running in a GUI?''' |
1564 if pycompat.sysplatform == 'darwin': |
1564 if pycompat.isdarwin: |
1565 if 'SSH_CONNECTION' in encoding.environ: |
1565 if 'SSH_CONNECTION' in encoding.environ: |
1566 # handle SSH access to a box where the user is logged in |
1566 # handle SSH access to a box where the user is logged in |
1567 return False |
1567 return False |
1568 elif getattr(osutil, 'isgui', None): |
1568 elif getattr(osutil, 'isgui', None): |
1569 # check if a CoreGraphics session is available |
1569 # check if a CoreGraphics session is available |