connectTest.py: reorganizes guards

This commit is contained in:
Jed Reynolds
2020-06-03 13:28:07 -07:00
parent bcb814f2c1
commit e1d4478f7d

View File

@@ -1,19 +1,16 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import sys import sys
if sys.version_info[0] != 3:
print("This script requires Python 3")
exit(1)
if 'py-json' not in sys.path: if 'py-json' not in sys.path:
sys.path.append('py-json') sys.path.append('py-json')
from LANforge import LFUtils from LANforge import LFUtils
from LANforge.LFUtils import * from LANforge.LFUtils import *
from LANforge.lfcli_base import LFCliBase from LANforge.lfcli_base import LFCliBase
import create_genlink as genl import create_genlink as genl
#debugOn = True
debugOn = True
if sys.version_info[0] != 3:
print("This script requires Python 3")
exit(1)
mgrURL = "http://localhost:8080/" mgrURL = "http://localhost:8080/"
staName = "sta0" staName = "sta0"