]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Python3 porting: small fix in init study. ngr/python3_dev_without_accents
authorrnv <rnv@opencascade.com>
Wed, 31 May 2017 11:35:51 +0000 (14:35 +0300)
committerrnv <rnv@opencascade.com>
Wed, 31 May 2017 11:35:51 +0000 (14:35 +0300)
src/KERNEL_PY/salome_study.py

index 3eda9d8fba41813e4ffdccb002d224aa7ee58def..b31fad8998b1972b0bdf0e909da8e5e9645bf674 100755 (executable)
@@ -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()