diff options
author | Niklas Johansson <sleeping.pillow@gmail.com> | 2014-07-03 17:55:34 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2014-07-03 16:57:59 +0000 |
commit | aa7f272d747dfeb1c7e003b7db123fda688fd881 (patch) | |
tree | 457e8dae5a59f222f9b45346df5e0e180a9d9106 /bin | |
parent | 97857c258178ffc79dd2799cd2d79047a863fb22 (diff) |
Don't stop on os.makedirs when making vs2012-ide-integration
At the moment it always stops on folders that already exists. See
https://bugs.freedesktop.org/show_bug.cgi?id=70414#c18 and the following
comments for example of the error messages that I face without this patch.
Change-Id: I1a1f337872ce3a817d425ff10255e3ae9a73c1a2
Reviewed-on: https://gerrit.libreoffice.org/10062
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gbuild-to-ide | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index 91a3fcf790b9..55bfa373647c 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -672,7 +672,9 @@ class VisualStudioIntegrationGenerator(IdeIntegrationGenerator): def write_project(self, project_path, target): # See info at http://blogs.msdn.com/b/visualstudio/archive/2010/05/14/a-guide-to-vcxproj-and-props-file-structure.aspx - os.makedirs(os.path.dirname(project_path), exist_ok = True) + folder = os.path.dirname(project_path) + if not os.path.exists(folder): + os.makedirs(folder) project_guid = str(uuid.uuid4()).upper() ns = 'http://schemas.microsoft.com/developer/msbuild/2003' ET.register_namespace('', ns) |