changeset 14:ff6c33d3a9d5 draft

planemo upload commit 87db86a34f2d92eb2c9756bf9ee53ae2970554d5
author pablocarb
date Tue, 11 Jun 2019 09:38:55 -0400
parents c62cf8c1b07c
children 785b6253af1f
files rpviz.xml
diffstat 1 files changed, 6 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/rpviz.xml	Tue Jun 11 05:02:24 2019 -0400
+++ b/rpviz.xml	Tue Jun 11 09:38:55 2019 -0400
@@ -7,15 +7,12 @@
         <requirement type="package">rdkit</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
-        if [ ! -d rpviz ]
-	then
-           git clone https://github.com/pablocarb/rpviz.git $__tool_directory__/rpviz > /dev/null
-	else
-	   cd $__tool_directory__/rpviz; git pull; cd ..
-	fi
-	cd $__tool_directory__
-        python $__tool_directory__/toolVisualizer.py $input1 $output1
-    ]]></command>
+     git clone https://github.com/pablocarb/rpviz.git $__tool_directory__/rpviz;
+     cd $__tool_directory__/rpviz; git pull; cd ..;
+     cd $__tool_directory__;
+     echo `which python` > $__tool_directory__/info.log;
+     PYTHONPATH="$__tool_directory__" python $__tool_directory__/toolVisualizer.py $input1 $output1
+   ]]></command>
     <inputs>
         <param type="data" name="input1" format="xml" />
     </inputs>