From ab100363c60246e418189a2a953d4c380e249717 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 6 Jun 2008 21:02:36 +0000 Subject: [PATCH] don't use os.path.normpath when pathname is null in PipelineRun --- gaworkflow/pipeline/runfolder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gaworkflow/pipeline/runfolder.py b/gaworkflow/pipeline/runfolder.py index 25d9331..3758679 100644 --- a/gaworkflow/pipeline/runfolder.py +++ b/gaworkflow/pipeline/runfolder.py @@ -34,7 +34,10 @@ class PipelineRun(object): FLOWCELL_ID = 'FlowcellID' def __init__(self, pathname=None, firecrest=None, bustard=None, gerald=None, xml=None): - self.pathname = os.path.normpath(pathname) + if pathname is not None: + self.pathname = os.path.normpath(pathname) + else: + self.pathname = None self._name = None self._flowcell_id = None self.firecrest = firecrest -- 2.30.2