def main(): # set user agent musicbrainzngs.set_useragent("whipper", configure.version, "https://github.com/JoeLametta/whipper") # register plugins with pkg_resources distributions, _ = pkg_resources.working_set.find_plugins( pkg_resources.Environment([directory.data_path('plugins')]) ) map(pkg_resources.working_set.add, distributions) try: ret = Whipper(sys.argv[1:], os.path.basename(sys.argv[0]), None).do() except SystemError, e: sys.stderr.write('whipper: error: %s\n' % e.args) return 255
def main(): # set user agent musicbrainzngs.set_useragent("morituri", configure.version, 'https://thomas.apestaart.org/morituri/trac') # register plugins with pkg_resources distributions, _ = pkg_resources.working_set.find_plugins( pkg_resources.Environment([directory.data_path('plugins')])) map(pkg_resources.working_set.add, distributions) c = Rip() try: ret = c.parse(sys.argv[1:]) except SystemError, e: sys.stderr.write('rip: error: %s\n' % e.args) return 255
def main(): # set user agent musicbrainzngs.set_useragent("whipper", morituri.__version__, "https://github.com/JoeLametta/whipper") # register plugins with pkg_resources distributions, _ = pkg_resources.working_set.find_plugins( pkg_resources.Environment([directory.data_path('plugins')]) ) map(pkg_resources.working_set.add, distributions) try: cmd = Whipper(sys.argv[1:], os.path.basename(sys.argv[0]), None) ret = cmd.do() except SystemError, e: sys.stderr.write('whipper: error: %s\n' % e) if (type(e) is common.EjectError and cmd.options.eject in ('failure', 'always')): eject_device(e.device) return 255