init: set share_dir_path according to FPGA_FAM env var
Signed-off-by: Paweł Czarnecki <pczarnecki@antmicro.com>
This commit is contained in:
parent
c6dce07e5b
commit
2bb2ae2037
|
@ -74,14 +74,13 @@ install_dir = environ.get("F4PGA_INSTALL_DIR", "/usr/local")
|
|||
|
||||
mypath = str(Path(__file__).resolve().parent)
|
||||
|
||||
FPGA_FAM = environ.get('FPGA_FAM', 'xc7')
|
||||
|
||||
bin_dir_path = \
|
||||
environ.get('F4PGA_BIN_DIR', str(Path(sys_argv[0]).resolve().parent.parent))
|
||||
share_dir_path = \
|
||||
environ.get('F4PGA_SHARE_DIR',
|
||||
str(Path(f'{install_dir}/xc7/install/share/f4pga').resolve()))
|
||||
if share_dir_path is None:
|
||||
share_dir_path = str(Path(f'{install_dir}/xc7/install/share/f4pga').resolve())
|
||||
str(Path(f'{install_dir}/{FPGA_FAM}/install/share/f4pga').resolve()))
|
||||
|
||||
class DependencyNotProducedException(F4PGAException):
|
||||
dep_name: str
|
||||
|
|
Loading…
Reference in New Issue