Make it so that the nel script can be run from anywhere.#14
Make it so that the nel script can be run from anywhere.#14johann-petrak wants to merge 1 commit intowikilinks:masterfrom
Conversation
|
[cc @wejradford, @jnothman] Hi @johann-petrak. Thanks for this. It's also possible to install using pip, e.g.: After which you can use the neleval command anywhere, e.g.: Does it make sense to have both options? |
|
I agree with @benhachey. We should rather document the |
|
I do not think the addition to the shell script interferes with anything else or does any harm but it makes it possible to just clone the repository and use the scripts right away. The install procedure you pointed out may need additional packages to get installed or require root priviledges (so people may need to beg their system administrators to install something first) or is otherwise not immediately obvious to users who are not familiar with python, so I thought just have the capability to have the main script work out of the box from anywhere would be a good thing. I routinely include that little codeblock in practically all my bash scripts because it is quite useful in general to be able to run a bash script from anywhere. |
|
Well, I'm not entirely convinced (there are dependencies to install anyway; root is not required if we recommend As for the codeblock you use in all your scripts, why do you not use |
|
Perhaps, given that we have the launcher script already, we might consider this addition... |
|
I do not feels strongly about this getting added, I am just sharing it in case you may find it useful and I pointed out why I think it could be useful :) |
Small addition to the nel script that will find the actual location of the script directory and add that location to the PYTHONPATH before running python. That way, the nel script (or a symbolic link) can put in the PATH or the script can be run by specifying the full path like so /where/the/script/is/installed/nel .