From 1976cf44c186a47147f8823adff92aea469fe2fd Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Wed, 12 Aug 2015 21:56:37 +0000 Subject: [PATCH] fixed os.path.splitext bug when using STDIN input --- processing/pre/geom_fromVoronoiTessellation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/pre/geom_fromVoronoiTessellation.py b/processing/pre/geom_fromVoronoiTessellation.py index 156bae1a6..a598e4e6d 100755 --- a/processing/pre/geom_fromVoronoiTessellation.py +++ b/processing/pre/geom_fromVoronoiTessellation.py @@ -196,7 +196,7 @@ if filenames == []: filenames = [None] for name in filenames: try: table = damask.ASCIItable(name = name, - outname = os.path.splitext(name)[0]+'.geom', + outname = os.path.splitext(name)[0]+'.geom' if name else name, buffered = False) except: continue table.croak('\033[1m'+scriptName+'\033[0m'+(': '+name if name else ''))