doc/prerst2man.py: Convert execfile to import
authorW. Trevor King <wking@tremily.us>
Sat, 5 Apr 2014 17:13:55 +0000 (10:13 -0700)
committerW. Trevor King <wking@tremily.us>
Sat, 5 Apr 2014 17:13:55 +0000 (10:13 -0700)
commit7c43c614cb09665400544fc0928ac14bb67ceeb5
tree9628a510a8bfccc478e12e66c1b652d6ec0d5789
parentadce76bb9a0ca728d856da4ecaf6b282e22e7440
doc/prerst2man.py: Convert execfile to import

excefile is gone in Python 3 [1].  Instead of exec-ing the
configuration, it's easier to insert the source directory in Python's
path [2], and just import the configuration.  With this change,
prerst2man.py is compatible with both Python 2 and 3.

[1]: https://docs.python.org/3.0/whatsnew/3.0.html#builtins
[2]: https://docs.python.org/3/library/sys.html#sys.path
doc/prerst2man.py