diff options
| author | Glenn Smith <glenn@vector35.com> | 2025-03-31 15:12:19 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-03-31 15:12:19 -0400 |
| commit | 8093106217331012734564301118244748535715 (patch) | |
| tree | d7fc7ddb4d94bbd779d3d90a00c5204fe32f7468 /python/enterprise.py | |
| parent | a96818fc7a696f6f925c024767145c82fe39b523 (diff) | |
Python: Make enterprise.connect() check for enterprise.initialize()
Diffstat (limited to 'python/enterprise.py')
| -rw-r--r-- | python/enterprise.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/enterprise.py b/python/enterprise.py index 03846a17..1ab04fdd 100644 --- a/python/enterprise.py +++ b/python/enterprise.py @@ -39,6 +39,8 @@ def connect(): """ Connect to the Enterprise Server. """ + if not is_initialized(): + initialize() if not core.BNConnectEnterpriseServer(): raise RuntimeError(last_error()) |
