source:
ReferenceDesigns/w3_802.11/python/wlan_exp/__init__.py
Last change on this file was 6320, checked in by chunter, 5 years ago | |
---|---|
File size: 383 bytes |
Line | |
---|---|
1 | import sys |
2 | |
3 | # Throw exception if using Python older than 2.7.5 |
4 | # Older Python versions do not support struct.unpack() features requires by wlan_exp |
5 | v = sys.version_info |
6 | if (v[0] == 2) and ( (v[1] < 7) or ( (v[1] == 7) and (v[2] < 5))): |
7 | raise Exception('ERROR: wlan_exp requires Python version 2.7.5 or later. Current python version %d.%d.%d not supported' % (v[0], v[1], v[2])) |
Note: See TracBrowser
for help on using the repository browser.