Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/python
- global config
- config = '/tmp/config.cfg'
- class BaseClass():
- def showConfig(self):
- print "I am using %s" % config
- class UserPlugin(BaseClass):
- def __init__(self):
- pass
- def doSomething(self):
- print "Something"
- fubar = UserPlugin()
- fubar.showConfig()
Advertisement
Add Comment
Please, Sign In to add comment