From: Diane Trout Date: Fri, 6 Jun 2008 21:02:36 +0000 (+0000) Subject: don't use os.path.normpath when pathname is null in PipelineRun X-Git-Tag: stanford.caltech-merged-database-2009-jan-15~53 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=ab100363c60246e418189a2a953d4c380e249717 don't use os.path.normpath when pathname is null in PipelineRun --- 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