From 37da2899f40661e3e9631e497da8dc59b971cbd0 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 17:07:39 +0000 Subject: 20060303a --- appl/lib/workdir.b | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 appl/lib/workdir.b (limited to 'appl/lib/workdir.b') diff --git a/appl/lib/workdir.b b/appl/lib/workdir.b new file mode 100644 index 00000000..aa571b9d --- /dev/null +++ b/appl/lib/workdir.b @@ -0,0 +1,14 @@ +implement Workdir; + +include "sys.m"; + +include "workdir.m"; + +init(): string +{ + sys := load Sys Sys->PATH; + fd := sys->open(".", Sys->OREAD); + if(fd == nil) + return nil; + return sys->fd2path(fd); +} -- cgit v1.2.3