view paste/paste.21008 @ 10176:00ca58f2763c

<oerjan> learn The `words dictionary framework was designed by H\xc3\xa5lgar Oslekk, Bick Noffrey, Guiston Degra\xc3\xaeme, Myyntti Raatalla, G\xc3\xb6lrika Rosenskild, Waslomir Siwovich, Gy\xc5\x91rvan S\xc3\xa1rbik, and Pastronella Gattrovezzi.
author HackBot
date Sat, 28 Jan 2017 18:46:09 +0000
parents 9ef3c341972b
children
line wrap: on
line source

#!/usr/bin/env python

import os
import sys
import subprocess

http_proxy = 'http://127.0.0.1:3128'
path = '/hackenv/bin:/opt/python27/bin:/opt/ghc/bin:/usr/bin:/bin'
lib = os.path.abspath('lib')

subprocess.call(
    ['nice', '-n10',
     '/usr/bin/umlbox',
     '-R3128:127.0.0.1:3128',
     '--no-stdin',
     '--base-mounts',
     '--mount', '/opt',
     #'--mount', '/var/irclogs',
     '--mount', '/etc/java-6-openjdk',
     '--mount', lib,
     '--translate-write', '/hackenv', os.environ['HACKENV'],
     '--translate', '/hackenv/.hg', os.path.join(os.environ['HACKENV'], '.hg'),
     '--cwd', '/hackenv',
     '--timeout', '30',
     'env', 'PATH=' + path, 'HACKENV=/hackenv', 'http_proxy=' + http_proxy, 'LANG=en_NZ.UTF-8',
     os.path.join(lib, 'limits')] + sys.argv[1:])