comparison frontends/src/jp/common.py @ 814:59c7bc51c323

jp: refactoring using ArgParse
author Dal <kedals0@gmail.com>
date Wed, 05 Feb 2014 14:35:26 +0100
parents frontends/src/jp/jp@1fe00f0c9a91
children f8d534ed1d1e
comparison
equal deleted inserted replaced
813:1a1600491d9d 814:59c7bc51c323
1
2
3 class MissingPlugin(Exception):
4 pass
5
6 def require(plugin_name):
7 suported_plugins = ["profile"]
8 if plugin_name not in Supported_plugins:
9 raise MissingPlugin