Mercurial > repos > geert-vandeweyer > clusterfast
changeset 12:e4000df38772 draft
Uploaded
author | geert-vandeweyer |
---|---|
date | Mon, 28 Jul 2014 09:49:10 -0400 |
parents | 1850675b00d2 |
children | 4a74b359e941 |
files | run_cf0611.pl |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/run_cf0611.pl Mon Jul 28 09:48:25 2014 -0400 +++ b/run_cf0611.pl Mon Jul 28 09:49:10 2014 -0400 @@ -30,8 +30,16 @@ my $partnerfile=''; my $cwd = getcwd(); -my $scriptspath="$cwd/cf_scripts"; -my $cffile="$cwd/cf_v1.1.jar"; +my $scriptspath = $cffile = ''; +# Galaxy installer puts scripts and jar into a folder, which is available under the environment variable CF_PATH +if (defined($ENV{'CF_PATH'}) && -d $ENV{'CF_PATH'}) { + $scriptspath = $ENV{'CF_PATH'}."/cf_scripts"; + $cffile = $ENV{'CF_PATH'}."/cf_v1.1.jar"; +} +else { + $scriptspath="$cwd/cf_scripts"; + $cffile="$cwd/cf_v1.1.jar"; +} my $help='';