Skip to content
Snippets Groups Projects
Commit 60656b0e authored by Tomasz Wlostowski's avatar Tomasz Wlostowski
Browse files

check for XILINX environment variable

parent d5d15505
Branches
Tags
No related merge requests found
......@@ -37,7 +37,12 @@ def __import_coregen_module(path, name, work_dir):
f.close()
def __import_coregen_files():
coregen_path = __os.getenv("XILINX") + "/ISE/coregen/ip/xilinx/primary/com/xilinx/ip/"
xilinx_dir = __os.getenv("XILINX");
if xilinx_dir == None:
print("[genrams] FATAL ERROR: XILINX environment variable not set. Do you have ISE installed?")
__os.exit(-1)
coregen_path = xilinx_dir + "/ISE/coregen/ip/xilinx/primary/com/xilinx/ip/"
work_dir = __manifest + "/coregen_ip";
......
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