If I run the prolog scripts like this
user:/home/user$ swipl -f some/path/init.pl  -s another/dir/script.pl
How can I get the relative or full paths: some/path and another/dir or /home/user/some/path and /home/user/another/dir?
I need it to locate other files that are let's say in another/dir/xml. 
working_directory/2 does'nt do the job.
Neither source_file/1 does.
For example, for perl there is FindBin module; also for python there are options.
 
     
    