tags:

views:

54

answers:

2

I'm executing multiple libraries from user.r.

I can get the path of the script from system/script/path but I can't see how I can get the name of the script. So am I obliged to hardcode the file name in header property like below (File):

REBOL [
    Title: "Lib1"
    File: "lib1.r"
    ]

    script-path: ""
]

system/script/header/script-path: rejoin [system/script/path system/script/header/file]
probe system/script/header/script-path
input
A: 

try help system/options and you will find the information you are lookimg for

sqlab
As I said above system/options does only work for a script passed to command line not with other scripts executed by parent script.
Rebol Tutorial
A: 

system/options/script does only give the full script name and path of the first script passed by dos command line (not if it is executed in console) and not the path of subsequent scripts called by the very first one.

What I want is the full path of the subsequents scripts.

So it seems there's no solution!

Rebol Tutorial