import os

# virtualenv
SCRIPTDIR = os.path.realpath(os.path.dirname(__file__))

venv_name = '_ck'
osdir = 'Scripts' if os.name is 'nt' else 'bin'
venv = os.path.join(venv_name, osdir, 'activate_this.py')
activate_this = (os.path.join(SCRIPTDIR, venv))
# Python 3: exec(open(...).read()), Python 2: execfile(...)
exec(open(activate_this).read(), dict(__file__=activate_this))
[((8, 7, 8, 57), 'os.path.join', 'os.path.join', ({(8, 20, 8, 29): 'venv_name', (8, 31, 8, 36): 'osdir', (8, 38, 8, 56): '"""activate_this.py"""'}, {}), "(venv_name, osdir, 'activate_this.py')", False, 'import os\n'), ((9, 17, 9, 46), 'os.path.join', 'os.path.join', ({(9, 30, 9, 39): 'SCRIPTDIR', (9, 41, 9, 45): 'venv'}, {}), '(SCRIPTDIR, venv)', False, 'import os\n'), ((4, 29, 4, 54), 'os.path.dirname', 'os.path.dirname', ({(4, 45, 4, 53): '__file__'}, {}), '(__file__)', False, 'import os\n')]