insert code to do ~ home directory expansion
authorDiane Trout <diane@caltech.edu>
Sat, 24 Jan 2009 00:24:18 +0000 (00:24 +0000)
committerDiane Trout <diane@caltech.edu>
Sat, 24 Jan 2009 00:24:18 +0000 (00:24 +0000)
scripts/runfolder

index bf0bcc45dcc33a02af341fe640cf76e7c6e6333b..0abbfe1c5128d1693c3443cebf8338d3023f9114 100644 (file)
@@ -29,6 +29,7 @@ read counts. (The report isn't currently very pretty)
 """
 import logging
 import optparse
+import os
 import sys
 
 from htsworkflow.pipelines import runfolder
@@ -66,6 +67,8 @@ def main(cmdlist=None):
 
     runs = []
     if opt.run_xml:
+        # handle ~ shortcut
+        opt.run_xml = os.path.expanduser(opt.run_xml)
         tree = ElementTree.parse(opt.run_xml).getroot()
         runs.append(runfolder.PipelineRun(xml=tree))
     for run_dir in args: