SHARE
    TWEET
    Guest User

    Untitled

    a guest
    Mar 20th, 2012
    145
    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. global config
    3. config = '/tmp/config.cfg'
    4. class BaseClass():
    5. def showConfig(self):
    6. print "I am using %s" % config
    7. class UserPlugin(BaseClass):
    8. def __init__(self):
    9. pass
    10. def doSomething(self):
    11. print "Something"
    12. fubar = UserPlugin()
    13. fubar.showConfig()
    Advertisement
    Add Comment
    Please, Sign In to add comment
    Public Pastes
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /