From: Yuri T. <qar...@gm...> - 2008-08-02 03:02:14
|
> their own code, so I'll probably at least leave that. But should I > leave all the command line stuff in markdown.py and just do a short > script something like: I can see the value of having an executable script installed in a proper place, but I don't think we should remove the command-line stuff from the main (="module") script. We could add an extra file, but I would really prefer to still have a combined script that can be either called from the command line or imported as a module. I know that such combined script is the only version that I would ever use myself. > #!/usr/bin/env python > if __name__ == '__main__': > import markdown > options = markdown.parse_options() > > if not options: > sys.exit(0) > > markdown.markdownFromFile(**options) Could be. - yuri -- http://sputnik.freewisdom.org/ |