From aafab53a937f2ccc30084b14349ae2ef565ca24b Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 31 May 2017 14:35:51 +0300 Subject: [PATCH] Python3 porting: small fix in init study. --- src/KERNEL_PY/salome_study.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2