Skip to content

Commit

Permalink
Make sure log path is not empty when poping up log view (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Denton authored Aug 16, 2019
1 parent c1dc8da commit 44e8866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cuegui/cuegui/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ def getLastLine(path):


def popupTail(file, facility=None):
if not popupWeb(file, facility):
if file and not popupWeb(file, facility):
JOB_LOG_CMD = "/usr/bin/xterm -sb -sl 4096 -n RQLOG -geometry 200x50+0+0 -title %s -e '/usr/bin/tail -n+0 -f %s'" % (os.path.basename(file), file)
shellOut(JOB_LOG_CMD)


def popupView(file, facility=None):
if not popupWeb(file, facility):
if file and not popupWeb(file, facility):
editor_from_env = os.getenv('EDITOR')
if editor_from_env:
job_log_cmd = editor_from_env.split()
Expand Down

0 comments on commit 44e8866

Please sign in to comment.