<commit_before>import sys
import subprocess
from os.path import abspath, join, dirname


# the below syntax works on both 2.6 and 2.7.
print "Bootstraping Virtualenv for Python {0}.{1}".format(*sys.version_info)

DIR    = dirname(__file__)
module = "bootstrap{0}.{1}.py".format(*sys.version_info)
script = abspath(join(DIR, module))

subprocess.call(['python', script])
<commit_msg>Calls sys.executable for things to work accordingly to command calling virtualenv. Closes #1. @henriqubastos<commit_after>import sys
import subprocess
from os.path import abspath, join, dirname


# the below syntax works on both 2.6 and 2.7.
print "Bootstraping Virtualenv for Python {0}.{1}".format(*sys.version_info)

DIR    = dirname(__file__)
module = "bootstrap{0}.{1}.py".format(*sys.version_info)
script = abspath(join(DIR, module))

subprocess.call([sys.executable, script])

{'fraction_non_alphanumeric': 0.12716763005780346, 'fraction_numerical': 0.019653179190751446, 'mean_word_length': 5.5606060606060606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1317809', 'n_tokens_mistral': 289, 'n_tokens_neox': 282, 'n_words': 81}