title: Blender 2.9 .x3d Import for loop
body: <p>I'm trying to write a custom script for Blender which will import and modify potentially hundreds of .x3d files 1 after the other from a directory.</p>
  <p>The script is massive but here's the relevant code for the import loop.</p>
  <pre><code>wDir = 'path to directory'
  
  directory_list = os.listdir(wDir)
  print('Files in the current working directory :')
  print(directory_list)
  
  
  def Import_Render():
  'Contents of function'
  bpy.ops.import_scene.x3d(filepath= fileName, filter_glob='.x3d;*.wrl;')
  
  
  for Current_Time_Step in directory_list:
      fileName = wDir + '\\' + Current_Time_Step
      Import_Render()
  </code></pre>
  <p>When I run it, the script doesn't error at the import. It continues to run through the whole thing until it realises nothing actually got imported before breaking.</p>
  <p>Does anyone know what's wrong here?</p>
  <p>Thanks.</p>