Zim

Where should I store scripts for custom tools?

Asked by David

I would like to write my own script to call with a custom tool (not a plugin). Do I have to store it in the notebook root folder, should it just be accessible via the PATH environment variable, or something else?

Also, are there different rules for bash scripts versus Python scripts? (Just wondered based on this comment: https://answers.launchpad.net/zim/+question/226775#comment-8 )

Question information

Language:
English Edit question
Status:
Solved
For:
Zim Edit question
Assignee:
No assignee Edit question
Solved by:
David
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#2

You can put it anywhere in the PATH. Python scripts are only special in the
sense that they are executed with the same interpreter as zim is running.
This is to avoid cases where python itself is not in the PATH...

On Wed, Jun 18, 2014 at 9:46 PM, d❤vid seaward <
<email address hidden>> wrote:

> New question #250430 on Zim:
> https://answers.launchpad.net/zim/+question/250430
>
> I would like to write my own script to call with a custom tool (not a
> plugin). Do I have to store it in the notebook root folder, should it just
> be accessible via the PATH environment variable, or something else?
>
> Also, are there different rules for bash scripts versus Python scripts?
> (Just wondered based on this comment:
> https://answers.launchpad.net/zim/+question/226775#comment-8 )
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

Revision history for this message
David (lofidevops) said :
#3

I'm trying to reopen this to close it as accepted :)

Revision history for this message
David (lofidevops) said :
#4

Thanks Jaap. I discovered that the scripts I'm running don't pick up the PATH set my my non-standard shell (fish), so I'm using absolute paths and that works fine for me.