mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fix bug in mk_api_doc.py where the Z3 python package path would be
				
					
				
			checked when building the Z3 python package documentation was disabled.
This commit is contained in:
		
							parent
							
								
									a9d6ef68f0
								
							
						
					
					
						commit
						6261a5c27b
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -103,15 +103,17 @@ def parse_options():
 | 
			
		|||
    TEMP_DIR = pargs.temp_dir
 | 
			
		||||
    OUTPUT_DIRECTORY = pargs.output_dir
 | 
			
		||||
    Z3PY_PACKAGE_PATH = pargs.z3py_package_path
 | 
			
		||||
    if not os.path.exists(Z3PY_PACKAGE_PATH):
 | 
			
		||||
        raise Exception('"{}" does not exist'.format(Z3PY_PACKAGE_PATH))
 | 
			
		||||
    if not os.path.basename(Z3PY_PACKAGE_PATH) == 'z3':
 | 
			
		||||
        raise Exception('"{}" does not end with "z3"'.format(Z3PY_PACKAGE_PATH))
 | 
			
		||||
    Z3PY_ENABLED = not pargs.no_z3py
 | 
			
		||||
    DOTNET_ENABLED = not pargs.no_dotnet
 | 
			
		||||
    JAVA_ENABLED = not pargs.no_java
 | 
			
		||||
    DOTNET_API_SEARCH_PATHS = pargs.dotnet_search_paths
 | 
			
		||||
    JAVA_API_SEARCH_PATHS = pargs.java_search_paths
 | 
			
		||||
 | 
			
		||||
    if Z3PY_ENABLED:
 | 
			
		||||
        if not os.path.exists(Z3PY_PACKAGE_PATH):
 | 
			
		||||
            raise Exception('"{}" does not exist'.format(Z3PY_PACKAGE_PATH))
 | 
			
		||||
        if not os.path.basename(Z3PY_PACKAGE_PATH) == 'z3':
 | 
			
		||||
            raise Exception('"{}" does not end with "z3"'.format(Z3PY_PACKAGE_PATH))
 | 
			
		||||
    return
 | 
			
		||||
 | 
			
		||||
def mk_dir(d):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue