Multithreading start selenium, reported NameError: name '__file__' is not defined

The __file__ single quotes solved:

  1.  
    # Get the current file name, directory used to create the model and result file
  2.  
    file_name = os.path.basename( '__file__').split('.')[0]

 

Reference URL: https: //blog.csdn.net/m0_37544464/article/details/82906459

Guess you like

Origin www.cnblogs.com/jingzaixin/p/12012552.html
Recommended