call python file with command line arguments from another python file code example Example: how to call a python script from another python script import fileB fileB.my_func()