Merge pull request #412 from grant-olson/move_osx_python_check
App fails with system python before OSX system check
This commit is contained in:
commit
9278a7dd3a
|
@ -23,6 +23,14 @@ import json
|
||||||
import singleton
|
import singleton
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
# OSX python version check
|
||||||
|
import sys
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
if float("{1}.{2}".format(*sys.version_info)) < 7.5:
|
||||||
|
print "You should use python 2.7.5 or greater."
|
||||||
|
print "Your version: {0}.{1}.{2}".format(*sys.version_info)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
# Classes
|
# Classes
|
||||||
from class_sqlThread import *
|
from class_sqlThread import *
|
||||||
from class_singleCleaner import *
|
from class_singleCleaner import *
|
||||||
|
@ -34,13 +42,6 @@ from class_addressGenerator import *
|
||||||
# Helper Functions
|
# Helper Functions
|
||||||
import helper_bootstrap
|
import helper_bootstrap
|
||||||
|
|
||||||
import sys
|
|
||||||
if sys.platform == 'darwin':
|
|
||||||
if float("{1}.{2}".format(*sys.version_info)) < 7.5:
|
|
||||||
print "You should use python 2.7.5 or greater."
|
|
||||||
print "Your version: {0}.{1}.{2}".format(*sys.version_info)
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
def connectToStream(streamNumber):
|
def connectToStream(streamNumber):
|
||||||
selfInitiatedConnections[streamNumber] = {}
|
selfInitiatedConnections[streamNumber] = {}
|
||||||
if sys.platform[0:3] == 'win':
|
if sys.platform[0:3] == 'win':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user