absolute path of Galaxy folder in template mako file in visualisation plugin
0
0
Entering edit mode
8.3 years ago

Hi,

My question is how can I get the absolute path of the galaxy root folder from mako template file of the visualisation plugin? For example, /Users/myname/Downloads/galaxy is my root folder. I want this value in javaScript.

my template file has:

 <%
   root = h.url_for( "/" )
   app_root = root + "plugins/visualizations/protviewer/static/"
%>

I tried to access it in javascript like this:

var config = { root : '${root}' }
alert(config.root)

It gave me '/' but I expected /Users/myname/Downloads/galaxy. Any idea how to get this?

mako galaxy.ini • 1.5k views
ADD COMMENT
0
Entering edit mode

Asking this over at Galaxy biostars may be more appropriate (assuming PSU galaxy is what this question is referring to).

ADD REPLY

Login before adding your answer.

Traffic: 2332 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6