human
call a Python script from another Python script
assistant
Here is some code to call a Python script "test2.py"

exec(compile(open('test2.py').read(), 'test2.py', 'exec'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.