Levure how to include shell scripts/executeables
Posted: Wed Jul 24, 2019 9:38 am
Hello,
i would like to include some shell scripts / executables in my levure based application.
a couple of questions:
1. which one is the correct / intended folder to put these scripts in ?
2. which entries are needed in app.yaml?
3. which is the correct path to the intended folder?
put shell("intendedfolderpath/xlsx2csv.py -d 'tab' '"& tFilePath &"'") into tFile
this works: put shell("/usr/local/bin/xlsx2csv.py -d 'tab' '"& tFilePath &"'") into tFile
i tried to put my xlsx2csv.py into assets on mac and call it like
shell("assets/xlsx2csv.py -d 'tab' '"& tFilePath &"'") into tFile
but this way the script is not found.
if i would like to call the script on windows what else then slash to backslash has to be changed in the shell call ?
Thank you very much in advance for any advise / sample
i would like to include some shell scripts / executables in my levure based application.
a couple of questions:
1. which one is the correct / intended folder to put these scripts in ?
2. which entries are needed in app.yaml?
3. which is the correct path to the intended folder?
put shell("intendedfolderpath/xlsx2csv.py -d 'tab' '"& tFilePath &"'") into tFile
this works: put shell("/usr/local/bin/xlsx2csv.py -d 'tab' '"& tFilePath &"'") into tFile
i tried to put my xlsx2csv.py into assets on mac and call it like
shell("assets/xlsx2csv.py -d 'tab' '"& tFilePath &"'") into tFile
but this way the script is not found.
if i would like to call the script on windows what else then slash to backslash has to be changed in the shell call ?
Thank you very much in advance for any advise / sample