title: Python Error: OSError: [Errno 22] Invalid argument
body: <p>I am using an automation framework and I am getting random error after many iterations which is as follows. Can someone help me understand what this could correspond to !!</p>
  
  <pre><code>_os.environ['PATH'] = r'C:\DAL;' + _os.environ['PATH']
    File "c:\Python26\lib\os.py", line 420, in __setitem__
      putenv(key, item)
  OSError: [Errno 22] Invalid argument
  </code></pre>
  
  <p>Function Call where it fails:</p>
  
  <p>function:</p>
  
  <pre><code>    plugin_xml_file_name = plugin_name
  else:
      plugin_xml_file_name = plugin_path + "\\" + plugin_name
  #
  
  _os.environ['PATH'] = r'C:\Intel\DAL;' + _os.environ['PATH']
  _os.environ['PATH'] = r'C:\intel\dal;' + _os.environ['PATH']
  _os.environ['PATH'] = _lakemore_path + ';' + _os.environ['PATH']
  _os.environ['PATH'] = plugin_path + ';' + _os.environ['PATH']
  </code></pre>