From 546d69c1296a5dffec4abdf7652547e94e9619bd Mon Sep 17 00:00:00 2001 From: Junzi Sun Date: Sat, 16 Feb 2019 01:10:12 +0100 Subject: [PATCH] bug fix --- pyModeS/streamer/modeslive | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyModeS/streamer/modeslive b/pyModeS/streamer/modeslive index 040f0ca..50bbd48 100755 --- a/pyModeS/streamer/modeslive +++ b/pyModeS/streamer/modeslive @@ -33,11 +33,13 @@ RAWTYPE = args.rawtype LAT0 = float(args.latlon[0]) LON0 = float(args.latlon[1]) UNCERTAINTY = args.uncertainty -DUMPTO = os.getcwd() + '/' + args.dumpto +DUMPTO = args.dumpto -if not os.path.isdir(DUMPTO): - print('Error: dump folder (%s) does not exist' % DUMPTO) - sys.exit(1) +if DUMPTO is not None: + DUMPTO = os.getcwd() + '/' + DUMPTO + if not os.path.isdir(DUMPTO): + print('Error: dump folder (%s) does not exist' % DUMPTO) + sys.exit(1) class ModesClient(BaseClient):