mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-14 16:58:43 +00:00
scripts: Better warning for getting reg.py
This commit is contained in:
parent
ea5774a13e
commit
eb62fb38a5
1 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,13 @@ def RunGenerators(api: str, registry: str, targetFilter: str) -> None:
|
|||
scripts_directory_path = os.path.dirname(os.path.abspath(__file__))
|
||||
registry_headers_path = os.path.join(scripts_directory_path, scripts)
|
||||
sys.path.insert(0, registry_headers_path)
|
||||
from reg import Registry
|
||||
try:
|
||||
from reg import Registry
|
||||
except:
|
||||
print("ModuleNotFoundError: No module named 'reg'") # normal python error message
|
||||
print(f'{registry_headers_path} is not pointing to the Vulkan-Headers registry directory.')
|
||||
print("Inside Vulkan-Headers there is a registry/reg.py file that is used.")
|
||||
sys.exit(1) # Return without call stack so easy to spot error
|
||||
|
||||
from generators.base_generator import BaseGeneratorOptions
|
||||
from generators.dispatch_table_generator import DispatchTableOutputGenerator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue