Fix usage of mkdir() on Windows

git-svn-id: http://svn.pyinstaller.org/trunk@621 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
giovannibajo
2009-02-25 17:19:58 +00:00
parent b7215eeee8
commit cbb1c8abbc
+6
View File
@@ -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) {