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))
[((154, 204), 'os.path.join', 'os.path.join', (['venv_name', 'osdir', '"""activate_this.py"""'], {}), "(venv_name, osdir, 'activate_this.py')\n", (166, 204), False, 'import os\n'), ((222, 251), 'os.path.join', 'os.path.join', (['SCRIPTDIR', 'venv'], {}), '(SCRIPTDIR, venv)\n', (234, 251), False, 'import os\n'), ((53, 78), 'os.path.dirname', 'os.path.dirname', (['__file__'], {}), '(__file__)\n', (68, 78), False, 'import os\n')]