These are chat archives for asmodehn/rostful
A lightweight package for providing and consuming ROS services, actions, and topics as RESTful web services
The usual Pythonic way of doing it is something like this:
_ROCON = False try: import rocon _ROCON = True except: pass if _ROCON: def func_that_uses_rocon(): pass class RoconWrapper(object): pass class SomeClass(object): def always_want_this(self): pass if _ROCON: def this_method_only_with_rocon(self): pass
Does that make sense?