Modified python scripts to support both python2.7 and python3 natively

This commit is contained in:
Isaac 2014-02-11 04:30:58 +10:00
parent eb3f57ce34
commit 3351bfce2f
8 changed files with 58 additions and 30 deletions
scripts/devSetup

View file

@ -22,7 +22,10 @@ class SystemConfiguration(object):
raise NotSupportedError(u"Your platform," + sys.platform + u",isn't supported.")
def get_current_working_directory(self):
return os.getcwdu()
if sys.version_info.major < 3:
return os.getcwdu()
else:
return os.getcwd()
def get_virtual_memory_address_width(self):
is64Bit = sys.maxsize/3 > 2**32