misc-fred/grandlyon/wcs-scripts/has_close_demands.py

14 lines
296 B
Python

import os
import sys
if os.path.dirname(__file__) not in sys.path:
sys.path.append(os.path.dirname(__file__))
import close_demands
coords = close_demands.get_coords(vars())
if coords:
result = any(close_demands.get_close_demands(form_objects.formdef, coords))
else:
result = False