def change_file_ext():
    if len(sys.argv) < 2:
        print("Usage: change_ext.py filename.old_ext 'new_ext'")
        sys.exit()

    name = os.path.splitext(sys.argv[1])[0] + "." + sys.argv[2]
    print (name)

    try:
        shutil.copyfile(sys.argv[1], name)
    except OSError as err:
        print (err)
Install just the base environment, no distutils patches etc
dataset/ETHPy150Open bt3gl/Python-and-Algorithms-and-Data-Structures/src/USEFUL/useful_with_files/change_ext_file.py/change_file_ext--crossover with--dataset/ETHPy150Open femmerling/backyard/virtualenv.py/install_python