<s> import os <EOL> import sys <EOL> import install_venv_common as install_venv <EOL> def first_file ( file_list ) : <EOL> for candidate in file_list : <EOL> if os . path . exists ( candidate ) : <EOL> return candidate <EOL> def main ( argv ) : <EOL> root = os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) <EOL> venv = os . environ [ '<STR_LIT>' ] <EOL> pip_requires = first_file ( [ <EOL> os . path . join ( root , '<STR_LIT>' ) , <EOL> os . path . join ( root , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] ) <EOL> test_requires = first_file ( [ <EOL> os . path . join ( root , '<STR_LIT>' ) , <EOL> os . path . join ( root , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] ) <EOL> py_version = "<STR_LIT>" % ( sys . version_info [ <NUM_LIT:0> ] , sys . version_info [ <NUM_LIT:1> ] ) <EOL> project = '<STR_LIT>' <EOL> install = install_venv . InstallVenv ( root , venv , pip_requires , test_requires , <EOL> py_version , project ) <EOL> install . post_process ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( sys . argv ) </s>
