From cbb1c8abbc746515d0bf51001ca8d958f0c6fb3c Mon Sep 17 00:00:00 2001 From: giovannibajo Date: Wed, 25 Feb 2009 17:19:58 +0000 Subject: [PATCH] Fix usage of mkdir() on Windows git-svn-id: http://svn.pyinstaller.org/trunk@621 8dd32b29-ccff-0310-8a9a-9233e24343b1 --- source/common/launch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/common/launch.c b/source/common/launch.c index 64964ed..051af31 100644 --- a/source/common/launch.c +++ b/source/common/launch.c @@ -827,7 +827,13 @@ FILE *openTarget(char *path, char* name_) if (!dir) break; if (stat(fnm, &sbuf) < 0) + { +#ifdef WIN32 + mkdir(fnm); +#else mkdir(fnm, 0700); +#endif + } } if (stat(fnm, &sbuf) == 0) {