M
Marcel Preda
Guest
Hi,
Is it possible to get the path of the current running skill script ?
(it's not a context file)
What I mean:
Let's suppose that i do:
load("/path/to/my_script.il")
I'm interested to get that "/pth/to" because on that path I have some
other skill and NON_skill files that I use .
I know that the best idea is to set an environment variable set before
running the script and read it,
but I want to distribute the code to some other people and very often
they forget to set the proper path before running icfb/virtuoso .
In some other languages (e.g. Perl) we have some constants like
__FILE__ which tells the "current file".
Thanks,
Marcel
Is it possible to get the path of the current running skill script ?
(it's not a context file)
What I mean:
Let's suppose that i do:
load("/path/to/my_script.il")
I'm interested to get that "/pth/to" because on that path I have some
other skill and NON_skill files that I use .
I know that the best idea is to set an environment variable set before
running the script and read it,
but I want to distribute the code to some other people and very often
they forget to set the proper path before running icfb/virtuoso .
In some other languages (e.g. Perl) we have some constants like
__FILE__ which tells the "current file".
Thanks,
Marcel