You use a.py and b.py as a library in python, so it is called under the same name as the test.py . Either the use of multiprocessing , or joblib , the same situation occurs.
There is a name option in the Process method ( multiprocessing.Process(self, group=None, target=None, name=None, args=(), kwargs={}) ), but, as @fedterzi says, it is intended only for identification purposes .
If you want to call a process or file, you can use the subprocess library.
Depending on the task, such as parellelizing bunch of processes, you can also use the gnu parallel or some other method through bash , to perform the desired behavior.
source share