Guest User

Untitled

a guest
Mar 20th, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/bin/python
  2.  
  3. global config
  4. config = '/tmp/config.cfg'
  5.  
  6.  
  7. class BaseClass():
  8.     def showConfig(self):
  9.         print "I am using %s" % config
  10.  
  11. class UserPlugin(BaseClass):
  12.     def __init__(self):
  13.         pass
  14.     def doSomething(self):
  15.         print "Something"
  16.  
  17.  
  18. fubar = UserPlugin()
  19. fubar.showConfig()
Advertisement
Add Comment
Please, Sign In to add comment