Project

General

Profile

Bug #1368

Plugin API: provide the root folder for the app that this plugin belongs to

Added by cpg over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/11/2014
Due date:
% Done:

0%


Description

As an API for plugins we should provide a way for the plugin to find its root folder where it can do whatever it wants, like add data, etc.

This is the root folder of the app that this plugin is part of, e.g. /var/hda/apps/ID/, not that of the source code of the plugin.

History

#1 Updated by cpg over 6 years ago

example, a method called root_folder:

self.root_folder => "/var/hda/apps/ID" 

Also available in: Atom