Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/sasctl/pzmm/write_score_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,17 +449,21 @@ def _write_imports(
try:
if current_session().version_info() != 3.5:
cls.score_code += "import settings\n\n"

"""
import settings


"""

except AttributeError:
warn(
"No current session connection was found to a SAS Viya server. Score "
"code will be written under the assumption that the target server is "
"SAS Viya 4."
)
cls.score_code += "import settings\n\n"


if mojo_model or binary_h2o_model:
cls.score_code += "import h2o\n\nh2o.init()\n\n"
Expand Down