diff options
Diffstat (limited to 'ogclient')
-rwxr-xr-x | ogclient | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -13,6 +13,7 @@ import logging import argparse import platform import subprocess +import shutil try: from signal import SIG_DFL, SIGPIPE except ImportError: @@ -79,7 +80,8 @@ def main(): LOGLEVEL = CONFIG['opengnsys']['log'] if MODE == 'live': - proc = subprocess.Popen(["browser", "-qws", URL]) + if shutil.which('browser'): + proc = subprocess.Popen(["browser", "-qws", URL]) if MODE != 'windows': signal.signal(SIGPIPE, SIG_DFL) |