Commit cc060617 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

winevulkan: Allow running make_vulkan from any working directory.

parent 27f2f419
......@@ -2721,6 +2721,11 @@ class VkRegistry(object):
self.handles = sorted(handles, key=lambda handle: handle.name)
self.structs = sorted(structs, key=lambda struct: struct.name)
def set_working_directory():
path = os.path.abspath(__file__)
path = os.path.dirname(path)
os.chdir(path)
def download_vk_xml(filename):
url = "https://raw.github.com/KhronosGroup/Vulkan-Docs/v{0}/xml/vk.xml".format(VK_XML_VERSION)
if not os.path.isfile(filename):
......@@ -2738,6 +2743,8 @@ def main():
else: # > 1
LOGGER.setLevel(logging.DEBUG)
set_working_directory()
vk_xml = "vk-{0}.xml".format(VK_XML_VERSION)
download_vk_xml(vk_xml)
registry = VkRegistry(vk_xml)
......
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