stopped calling "uname -m" to get the architecture, and instead use python os.uname()

This commit is contained in:
Micah Lee 2013-02-21 10:50:07 -08:00
parent 07a125d673
commit 058fbd8403

View File

@ -71,7 +71,8 @@ class TorBrowserLauncher:
# discover the architecture and language # discover the architecture and language
def discover_arch_lang(self): def discover_arch_lang(self):
# figure out the architecture # figure out the architecture
self.architecture = subprocess.Popen(['uname', '-m'], stdout=subprocess.PIPE, stderr=None).stdout.read().strip('\n') (sysname, nodename, release, version, machine) = os.uname()
self.architecture = machine
# figure out the language # figure out the language
available_languages = ['en-US', 'ar', 'de', 'es-ES', 'fa', 'fr', 'it', 'ko', 'nl', 'pl', 'pt-PT', 'ru', 'vi', 'zh-CN'] available_languages = ['en-US', 'ar', 'de', 'es-ES', 'fa', 'fr', 'it', 'ko', 'nl', 'pl', 'pt-PT', 'ru', 'vi', 'zh-CN']