Re: [Factor-talk] resolve full path

2007-03-19 Thread Anton Rolls
Doh! That was perhaps a stupid example, because of course cwd already gives that exact result. The general question is how to resolve *any* relative path. Here's the situation: The fmod module is now located in libs/fmod . libs/fmod/ load.factor fmod.facto

Re: [Factor-talk] resolve full path

2007-03-19 Thread Anton Rolls
Sorry, perhaps I wasn't that clear. I'd like, given a relative path, eg: "./" to resolve it into the absolute path, eg: "D:/Anton/Dev/Factor/" Regards, Anton. > For space invaders I keep the ROM files in a directory stored in a > variable rom-root. That's set to something lik

Re: [Factor-talk] resolve full path

2007-03-19 Thread Chris Double
For space invaders I keep the ROM files in a directory stored in a variable rom-root. That's set to something like "d:/foo/bar/roms". I then take a file, "space-invaders/a.b" and path+ it too that stored in rom-root to get the full name. Is that something like what you want? Chris. -- http://www.

[Factor-talk] resolve full path

2007-03-19 Thread Anton Rolls
cwd gives me the current working directory, with (escaped) backslashes as per the local filesystem: cwd ! ===> "D:\\Anton\\Dev\\Factor" resource-path gives me a relative directory: "" resource-path ! ===> "./" I'd like to transform the relative directory into an absolute local