-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_00_installation_control.py
More file actions
34 lines (29 loc) · 1.02 KB
/
test_00_installation_control.py
File metadata and controls
34 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! python3
# -*- coding: utf-8 -*-
"""
(C) 2019 Airbus copyright all rights reserved
SurRender
Script : SCR_00 Installation control
"""
import sys
from surrender.surrender_client import surrender_client
#-----------------------------------------------------------------------
# Main
#-----------------------------------------------------------------------
def test_install():
#--[Connection to server]--------------------------------
s = surrender_client()
s.setVerbosityLevel(1)
s.connectToServer("127.0.0.1", 5151)
print("----------------------------------------")
print("SCRIPT : %s"%sys.argv[0])
print("SurRender client is connected? %s"% (s.isConnected() > 0) )
assert(s.isConnected() > 0)
print("SurRender version: " + s.version() )
print("SurRender resource path set to: '" + s.getRessourcePath() + "'")
print("SCR_00: done.")
print("----------------------------------------")
if __name__ == "__main__":
test_install()
#-----------------------------------------------------------------------
# End