title: Python - run external script
body: <p>Does someone know if I have a script <code>one.py</code> which is written the following way:</p>
  
  <pre><code>if __name__ == '__main__':
      # Do something
  </code></pre>
  
  <p>And I want to call that <code>main</code> function from another script. How should I do that?</p>
  
  <p>I guess it would be something like <em>(let's say this is <code>launcher.py</code>)</em></p>
  
  <pre><code># 'one' stands for import from `one.py` module
  import one
  
  if __name__ == '__main__':
      one.main()
  </code></pre>
  
  <p><em>The only problem is that I can't call <code>main()</code> this way.</em></p>
  
  <p><strong>How should this be done?</strong></p>