I have a script that I run via plackup and want to run it on different machines with the different directory-layouts.
The script accesses some other resources can be found relative to the script-location.
I'd like to be able to simply move the script around and wonder if there is a way for the running script to find it's location.
Or to clarify: Is there a way for a script that is run via "plackup /path/to/somewhere/myscript.psgi" to figure out /path/to/somewhere at runtime in a handler?
Many thanks!
In reply to does a script run via plackup knows where it is? by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |