Changeset 1856


Ignore:
Timestamp:
Sep 29, 2005, 12:37:54 PM (19 years ago)
Author:
ole
Message:

Removed explicit dependency on pyvolution util_ext.c - instead let util make the test of the existence of its C extension.
This was addressed in ticket:20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/mesh.py

    r1421 r1856  
    4747#Initialise module
    4848
    49 import compile
    50 if compile.can_use_C_extension('util_ext.c'):
    51     from util_ext import gradient, point_on_line
    52 else:
    53     gradient = gradient_python
     49
     50#Changed by Ole: Let util.py make the decision
     51from pyvolution.util import gradient
     52#import compile
     53#if compile.can_use_C_extension('util_ext.c'):
     54#    from util_ext import gradient, point_on_line
     55#else:
     56#    gradient = gradient_python
     57
    5458
    5559# 1st and third values must be the same
Note: See TracChangeset for help on using the changeset viewer.