prjxray/prjxray
Carlos Venegas Arrabé 10381074b2
util: make OpenSafeFile work without fcntl (Windows)
prjxray/util.py imported fcntl at module level, so merely importing
prjxray (e.g. from fasm2frames) failed on Windows, where fcntl does
not exist. The only user is OpenSafeFile's advisory flock, whose
timeout also relies on SIGALRM — equally POSIX-only.

Guard the import and skip the locking when fcntl is unavailable:
OpenSafeFile degrades to a plain open on Windows, while POSIX
behaviour is unchanged.
2026-07-31 22:47:03 +02:00
..
__init__.py Generate tile types, site types, tilegrid, tileconn for entire part. 2018-09-26 22:37:33 -07:00
bitfilter.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
bitsmaker.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
bitstream.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
connections.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
db.py prjxray: Update scripts to access fabric data 2021-01-12 22:36:58 +01:00
fasm_assembler.py print a human readable warning when encountering invalid word addresses 2024-01-04 10:58:00 +07:00
fasm_disassembler.py disassembler: sort remaining unknown bits 2021-01-05 18:14:17 +01:00
grid.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
grid_types.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
lib.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
lms_solver.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
lut_maker.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
math_models.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
node_lookup.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
node_model.py Addresses review comments. 2020-11-30 14:09:17 -05:00
overlay.py Remove grid argument and fix formatting 2020-07-15 15:54:27 -04:00
roi.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
segmaker.py prjxray/segmaker.py: add GTX support 2025-02-13 17:20:08 +07:00
segment_map.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
site_type.py Fix formatting after updating license headers 2020-05-26 07:33:12 -07:00
state_gen.py Fix formatting after updating license headers 2020-05-26 07:33:12 -07:00
tile.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
tile_segbits.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
tile_segbits_alias.py scripts: use open safe file class 2022-03-17 10:04:19 +01:00
timing.py Fix formatting after updating license headers 2020-05-26 07:33:12 -07:00
util.py util: make OpenSafeFile work without fcntl (Windows) 2026-07-31 22:47:03 +02:00
verilog.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00
xjson.py Add licensing header to python scripts 2020-05-26 07:33:12 -07:00