From 4f022ab1454b97d1cd0113af6f8d793918863464 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Sat, 24 Jan 2009 00:24:18 +0000 Subject: [PATCH] insert code to do ~ home directory expansion --- scripts/runfolder | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.30.2