<commit_before>#!/usr/bin/python
import os
import sys

BUILD_UTIL_DIR_NAME = 'dotfiles_build_packages'
rootdir = os.path.dirname(os.path.realpath(__file__))
buildutildir = os.path.join(rootdir, BUILD_UTIL_DIR_NAME)
sys.path.append(buildutildir)

import dotfiles.install

if __name__ == "__main__":
    dotfiles.install.main(rootdir)<commit_msg>Now try to find python2.7 instead of just failing if version is less<commit_after>#!/usr/bin/python
import os
import sys
import subprocess

version = sys.version_info
if version[0] <= 2 and version[1] < 7:
    print 'Bad python version: ' + str(version)
    print 'Atempting to execute with python2.7'
    new_args = list(sys.argv)
    new_args[0:1] = ['python2.7', os.path.realpath(__file__)]
    print 'executing: ', new_args
    subprocess.call(new_args)

else:
    BUILD_UTIL_DIR_NAME = 'dotfiles_build_packages'
    rootdir = os.path.dirname(os.path.realpath(__file__))
    buildutildir = os.path.join(rootdir, BUILD_UTIL_DIR_NAME)
    sys.path.append(buildutildir)

    import dotfiles.install

    if __name__ == "__main__":
        dotfiles.install.main(rootdir)
{'fraction_non_alphanumeric': 0.11310592459605028, 'fraction_numerical': 0.010771992818671455, 'mean_word_length': 4.603015075376884, 'pattern_counts': {'":': 2, '<': 5, '<?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': '6286297', 'n_tokens_mistral': 403, 'n_tokens_neox': 396, 'n_words': 80}