meejah/txtorcon — pull request #28 by lukaslueg (2012-12-29 18:23:05+00:00)
Title: Fixes

Hi,

three fixes:

- Files in /examples are now all executable
- Special-cased attribute lookup in TorConfig() to make getattr() on "__foobar__" go to the TorConfig-instance itself, not self.config. This fixes pydoc throwing up because it receives a KeyError instead of an AttributeError when doing help(TorConfig())
- Drop privileges of the temporary directory in launch_tor() to the user tor will drop privileges to. This allows launch_tor() to execute as root when TorConfig.User is set (issue #26)