Merge lp:~sil/enso/platform-specific-folders into lp:~communityenso/enso/community-enso

Proposed by Stuart Langridge
Status: Needs review
Proposed branch: lp:~sil/enso/platform-specific-folders
Merge into: lp:~communityenso/enso/community-enso
To merge this branch: bzr merge lp:~sil/enso/platform-specific-folders
Reviewer Review Type Date Requested Status
shu.chen Approve
Review via email: mp+3952@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Stuart Langridge (sil) wrote :

Provide extra interfaces for platform specific stuff.

If you want the folder where commands are stored, call:

from enso.providers import getInterface
getInterface("scripts_folder")

and there are now two new interfaces:

getInterface("learned_commands_folder")
getInterface("data_folder")

The ensoapi object now also provides a get_enso_learned_commands_folder so the learned-commands folder is available to commands.

Neither of these interfaces are currently used, but we need to build a "learn as open" command which is cross-platform, and that will use "learned_commands_folder".

Please confirm that this works on other platforms; I can confirm it works on Linux. Note that I may have *moved* the folder to somewhere more appropriate, which could mean that all your existing commands may need to be moved. Install the Enso Developers command from http://www.kryogenix.org/code/enso/ to easily find out where your installed commands are.

Revision history for this message
shu.chen (sirpengi) wrote :

I can confirm this works in Vista (Home, 32bit). Feel free to use my test command ( http://enso.freelancedreams.com/commands.html - provides "test platform all" and "test ensoapi all" commands) if you need a way to test whether it works.

review: Approve

Unmerged revisions

144. By Stuart Langridge

stupid typo

143. By Stuart Langridge

Provide new interfaces and move everything around

Subscribers

People subscribed via source and target branches

to status/vote changes: