We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff30240 commit 0e407c5Copy full SHA for 0e407c5
src/sasctl/pzmm/write_score_code.py
@@ -449,17 +449,21 @@ def _write_imports(
449
try:
450
if current_session().version_info() != 3.5:
451
cls.score_code += "import settings\n\n"
452
+
453
"""
454
import settings
455
456
457
458
459
except AttributeError:
460
warn(
461
"No current session connection was found to a SAS Viya server. Score "
462
"code will be written under the assumption that the target server is "
463
"SAS Viya 4."
464
)
465
+ cls.score_code += "import settings\n\n"
466
467
468
if mojo_model or binary_h2o_model:
469
cls.score_code += "import h2o\n\nh2o.init()\n\n"
0 commit comments