diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2002-08-14 21:22:40 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2002-08-14 21:22:40 +0000 |
commit | ae9d496ca9a981c1ee4014a9411c53a9bcb8f03d (patch) | |
tree | 3f6e641279e9018497e0e5512248a654d88644d4 /pyparallel | |
parent | ff84885571506839c7f785a85e6ee7e487bf956d (diff) | |
download | pyserial-git-ae9d496ca9a981c1ee4014a9411c53a9bcb8f03d.tar.gz |
for install: if no path is given, then the file is searched in the current directory, the file extension .sys is appended
Diffstat (limited to 'pyparallel')
-rw-r--r-- | pyparallel/src/win32/loaddrv_console/loaddrv.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |