title: How to convert python code (.py) to an app on mac osx
body: <p>I am making an app in python, which is able to open different file types. This code is running fine on eclipse while passing filename which I want to open and configuration file as arguments respectively <code>selectedFileName=(sys.argv)[1]</code>
  <code>cfgFile=(sys.argv)[2]</code>. Now I converted this into application by using py2app. So, the issue is how to deal with arguments, as different file types need to be open through app and this app also needs configuration file while processing. Through py2app, in  terminal passing this command <code>open -a myapp.app selectedFileName config.cfg</code> opens the file as expected. But, What I want is to directly open file of any extension without the use of terminal. Is <code>openwith</code> for opening file possible in this case, then how?. What changes I have to make in code for passing arguments for both? I also want to distribute this app to others.</p>