I want to load a q script that is relative to the source file I am currently in regardless of where I was when the q process started.
So for example I have the following project:
- myproject/
a.q
b.q
In a.q I have the following line somewhere:
...
system"l b.q";
...
My problem is that this only works when I cd to myproject/ so that b.q is in the current working directory.
I want to be able to load b.q from a.q regardless of where I start the script without using absolute paths
(In python I could do this for example with the use of os.path.realpath())