2011/11/4 D. Barbier <[email protected]>
> On 2011/11/4 D. Barbier wrote:
> [...]
> > Same here in C++ with OCE, 3 resource files are not installed under
> > UnitsAPI (CurrentUnits MDTVBaseUnits MDTVCurrentUnits, the former is
> > needed in your test).
>
> Pierre, you can download
> https://raw.github.com/tpaviot/oce/master/src/UnitsAPI/CurrentUnits
> into some directory, and set CSF_CurrentUnitsDefaults environment
> variable to this directory.
>
> Denis
>
>
Hi Denis,
Thanks for your insightful comment. Works here on OSX, copying missing
files to usr/local/share/oce-0.7.0/src/UnitsAPI and setting additional env
var.
>>> u = UnitsAPI()
>>> u.SetLocalSystem(UnitsAPI_SI)
>>> u.CurrentUnit("LENGTH")
'm'
>>>
Thomas
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users