Kaydet (Commit) aa7f272d authored tarafından Niklas Johansson's avatar Niklas Johansson Kaydeden (comit) Fridrich Strba

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/10062Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 97857c25
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment