From: Diane Trout Date: Sat, 24 Jan 2009 00:24:18 +0000 (+0000) Subject: insert code to do ~ home directory expansion X-Git-Tag: 0.2.0.1~32 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=4f022ab1454b97d1cd0113af6f8d793918863464 insert code to do ~ home directory expansion --- diff --git a/scripts/runfolder b/scripts/runfolder index bf0bcc4..0abbfe1 100644 --- a/scripts/runfolder +++ b/scripts/runfolder @@ -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: