From: rnv Date: Wed, 31 May 2017 11:35:51 +0000 (+0300) Subject: Python3 porting: small fix in init study. X-Git-Tag: V9_0_0~25^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fngr%2Fpython3_dev_without_accents;p=modules%2Fkernel.git Python3 porting: small fix in init study. --- diff --git a/src/KERNEL_PY/salome_study.py b/src/KERNEL_PY/salome_study.py index 3eda9d8fb..b31fad899 100755 --- a/src/KERNEL_PY/salome_study.py +++ b/src/KERNEL_PY/salome_study.py @@ -400,7 +400,7 @@ def salome_study_init(theStudyPath=None): myStudyId = getActiveStudy() if myStudyId == None : import types - if theStudyPath and type(theStudyPath) == bytes: + if theStudyPath and (type(theStudyPath) == bytes or type(theStudyPath) == str): myStudyId = openStudy(theStudyPath) else: myStudyId = createNewStudy()