mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
plugin_path now available
As of https://bitbucket.org/galaxy/galaxy-central/commits/ddc9a669d53aa259d38efc882c890503444daaf5
This commit is contained in:
@@ -33,26 +33,9 @@ def get_galaxy_paster_port():
|
||||
|
||||
galaxy_paster_port = get_galaxy_paster_port()
|
||||
|
||||
viz_plugin_dir = None
|
||||
try:
|
||||
# Newer Python versions allow more, direct/correct
|
||||
# access to the current plugin directory.
|
||||
viz_plugin_dir = plugin_path
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
if not viz_plugin_dir:
|
||||
# Provide fallback for older versions.
|
||||
viz_plugin_dir = config.get('app:main', 'visualization_plugins_directory')
|
||||
if not os.path.isabs(viz_plugin_dir):
|
||||
# If it is NOT absolute, i.e. relative, append to galaxy root
|
||||
viz_plugin_dir = os.path.join(galaxy_root_dir, viz_plugin_dir)
|
||||
# Get this plugin's directory
|
||||
viz_plugin_dir = os.path.join(viz_plugin_dir, "ipython")
|
||||
|
||||
# Store our template and configuration path
|
||||
our_config_dir = os.path.join(viz_plugin_dir, "config")
|
||||
our_template_dir = os.path.join(viz_plugin_dir, "templates")
|
||||
our_config_dir = os.path.join(plugin_path, "config")
|
||||
our_template_dir = os.path.join(plugin_path, "templates")
|
||||
ipy_viz_config = ConfigParser.SafeConfigParser({'apache_urls': False, 'command': 'docker', 'image':
|
||||
'bgruening/docker-ipython-notebook',
|
||||
'password_auth': False, 'ssl': False,
|
||||
|
||||
Reference in New Issue
Block a user