title: In Python, can I call the main() of an imported module?
body: <p>In Python I have a <strong>module</strong> myModule.py where I define a few functions and a <strong>main()</strong>, which takes a few command line arguments. </p>
  
  <p>I usually call this main() from a bash script. Now, I would like to put everything into a small <strong>package</strong>, so I thought that maybe I could turn my simple bash script into a Python script and put it in the package.</p>
  
  <p>So, how do I actually <strong>call the main()</strong> function of myModule.py <strong>from the main() function</strong> of MyFormerBashScript.py? Can I even do that? How do I pass any <strong>arguments</strong> to it?</p>