Question

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
Was it helpful?

Solution

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!

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top