On 21/04/2013 23:05, Miguel Coimbra wrote:
> Hello,
>
> I am currently attempting to implement in Taverna a workflow that is to
> execute in any operating system, being comprised of several local tool
> invocation services. I have two questions:
>
> 1 - Can I refer to system environment variables in a uniform way in the
> "Command" section of the tool invocation configuration window? Suppose I
> want to execute something like:
>
> *python $HOME/script.py
> *
>
> In Linux/Unix I would refer to the variable as $HOME, but in Windows I
> would have to use %HOME%. Is there a way to incorporate environment
> variables in the command form in a syntax-independent way?

Could you not have a python file that did something like

execfile (os.path.expanduser("~/script.py") )

> 2 - When configuring an explicit location for the tool invocation, is
> there a way to reference environment variables? I need this because I'm
> planning to enforce the use of a script prior to executing the workflow
> in Taverna. That script would create an environment variable that
> contains a path. I would like to refer to that environment variable in
> the explicit location config. Is there any way to do this?

I am a bit confused here. Do you want the script to decide where the
tool services are executed?

> Thanks in advance,
>
> Best regards,
>
> --
> Miguel E. Coimbra

Alan





------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to