don't use os.path.normpath when pathname is null in PipelineRun
authorDiane Trout <diane@caltech.edu>
Fri, 6 Jun 2008 21:02:36 +0000 (21:02 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 6 Jun 2008 21:02:36 +0000 (21:02 +0000)
gaworkflow/pipeline/runfolder.py

index 25d933110877ad3bfd853bfdf1e3456f020f90ee..3758679a97ca05956617d0c2aef0fee6611bd540 100644 (file)
@@ -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