From ae9d496ca9a981c1ee4014a9411c53a9bcb8f03d Mon Sep 17 00:00:00 2001 From: cliechti Date: Wed, 14 Aug 2002 21:22:40 +0000 Subject: for install: if no path is given, then the file is searched in the current directory, the file extension .sys is appended --- pyparallel/src/win32/loaddrv_console/loaddrv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyparallel/src/win32/loaddrv_console/loaddrv.c b/pyparallel/src/win32/loaddrv_console/loaddrv.c index 7b6f330..9024ce2 100644 --- a/pyparallel/src/win32/loaddrv_console/loaddrv.c +++ b/pyparallel/src/win32/loaddrv_console/loaddrv.c @@ -66,7 +66,9 @@ int main(int argc, char *argv[]) { } else if (strcmp(argv[1], "install") == 0) { char path[MAX_PATH*2]; if (argc<4) { - sprintf(path, "%s.sys", argv[2]); + char cwd[MAX_PATH]; + getcwd(cwd, sizeof cwd); + sprintf(path, "%s\\%s.sys", cwd, argv[2]); } else { strncpy(path, argv[3], MAX_PATH); } -- cgit v1.2.1