From 66bfe49a0f87171675e213bcbf520975528cbcae Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 2 Nov 2018 14:17:32 +0300 Subject: [PATCH] Python 3 porting --- src/PYCALCULATOR/PYCALCULATOR.py | 4 ++-- src/PYCALCULATOR/PYCALCULATOR_TEST.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PYCALCULATOR/PYCALCULATOR.py b/src/PYCALCULATOR/PYCALCULATOR.py index 369fc2a..9fcb601 100755 --- a/src/PYCALCULATOR/PYCALCULATOR.py +++ b/src/PYCALCULATOR/PYCALCULATOR.py @@ -29,8 +29,8 @@ # This is necessary to ensure that different modules will have the same definition # of dynamic types and C++ RTTI will work between them # -import DLFCN, sys -sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL) +import os, sys +sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL) import PYCALCULATOR_ORB__POA import SALOME_ComponentPy diff --git a/src/PYCALCULATOR/PYCALCULATOR_TEST.py b/src/PYCALCULATOR/PYCALCULATOR_TEST.py index 4f5d966..a827d35 100755 --- a/src/PYCALCULATOR/PYCALCULATOR_TEST.py +++ b/src/PYCALCULATOR/PYCALCULATOR_TEST.py @@ -32,8 +32,8 @@ salome.salome_init() import PYCALCULATOR_ORB +from medcoupling import * from MEDCouplingCorba import * -from MEDCoupling import * from MEDLoader import * from MEDCouplingClient import * -- 2.39.2