> Am 04.11.2021 um 15:54 schrieb Pablo Rodriguez via ntg-context
> :
>
> I’m really suprised that Windows accepts slashes in paths.
It does at least since Windows NT.
Hraban
___
If your question is of interest to
On 11/3/21 9:55 PM, Hans Hagen via ntg-context wrote:
> On 11/3/2021 7:49 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> How can I get the io.fileseparator or escape the backslash in
>> main_filename_win above?
> (there are helpers for splitting names and combining paths)
>
> - use locals
On 11/3/2021 7:49 PM, Pablo Rodriguez via ntg-context wrote:
Dear list,
I have the following sample:
\starttext
\startluacode
main_file = document.files[1]
if file.pathpart(main_file) == "" then
main_filename = file.nameonly(main_file)
main_filename_win = main_filename
Dear list,
I have the following sample:
\starttext
\startluacode
main_file = document.files[1]
if file.pathpart(main_file) == "" then
main_filename = file.nameonly(main_file)
main_filename_win = main_filename
else
main_filename =