title: how to execute 7zip commands from python script
body: <p>I am trying to get a basic idea of how the os.system module can be used to execute 7zip commands. For now I don't want to complicate things with Popen or subprocess. I have installed 7zip and copied the 7zip.exe into my users folder. I just want to extract my test file install.zip. However using the code below causes the shell to appear briefly before exiting and no unzip has occurred. Please could you tell me why?</p>
  
  <pre><code>def main():
      try:
  
           os.system(r"C:\Users\Oulton\ 7z e C:\Users\Oulton\install.zip")
      except:
              time.sleep(3)
              traceback.print_exc
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>Many Thanks</p>