title: TypeError: 'NoneType' object is not iterable in maya python
body: <p>I'm working on a python script for autodesk maya and I have a problem with the beginning of it since 3 weeks.</p>
  
  <pre><code>import maya.cmds as cmds
  import os.path
  import ntpath
  
    global directory_Seqs
    global directory_Seqs_2
    global direction_0
    global listSeqOption
    direction_0 = cmds.fileDialog2(fileMode=3,dialogStyle = 1)
    directory_Seqs = os.path.join(direction_0,'03_TRAVAIL','3D','SEQ')
    directory_Seqs_2 = os.path.normpath(directory_Seqs[0])
  
    print directory_Seqs_2
  
    listSeqOption = cmds.getFileList(directory_Seqs_2)
    for seq in listSeqOption :
        seq = cmds.menuItem('listSeq', label= seq , parent="UI_SeqOptionMenu")
  </code></pre>
  
  <p>it's working on linux, but i have a failure on windows : </p>
  
  <pre><code>   # TypeError: 'NoneType' object is not iterable # 
  </code></pre>
  
  <p>about </p>
  
  <pre><code>   listSeqOption
  </code></pre>
  
  <p>can someone know how to fix it ?</p>