title: How to input arguments after compiling python program with PyInstaller
body: <p>After <code>import sys</code>, I use <code>sys.argv</code> to get input arguments.</p>
  <p>But after I compile my program with PyInstaller, the exe program will not accept my input. Instead, it uses the default value I set for the program.</p>
  <p>If I run it with  <code>python this_script.py</code> it waits for my input to specify the <code>wait_time</code>. However, after I compile it with PyInstaller, if I double click the exe file there is no place for me to input the <code>wait_time</code>.</p>
  <p>How can I compile it and let the exe file accept my input?</p>
  <pre class="lang-py prettyprint-override"><code>import sched, time
  import sys
      
  s = sched.scheduler(time.time, time.sleep)
      
  # wait_time is an integer representing how many seconds to wait.
  def do_something(sc, wait_time): 
      # Here will be the code for doing something every after &quot;wait_time &quot; seconds
      sc.enter(wait_time, 1, do_something, (sc, wait_time))  
      
      try:
          wait_time = int(sys.argv[1])
      except IndexError:
          wait_time = 5    
      
      
  # s.enter(wait_time, 1, do_something, (s,))
  s.enter(wait_time, 5, do_something, (s, wait_time))
  s.run()
  </code></pre>