]> git.notmuchmail.org Git - notmuch/commit
doc/mkdocdeps.py: Convert execfile to import
authorW. Trevor King <wking@tremily.us>
Sat, 5 Apr 2014 17:31:05 +0000 (10:31 -0700)
committerDavid Bremner <david@tethera.net>
Mon, 21 Apr 2014 12:31:36 +0000 (21:31 +0900)
commitb10b12da890d31819e411aec5158dca99359e830
treeaf052861f6176f57b52e5d07425699530f271317
parentce0e3eeaca4522353148a1894cd3ce9e9122e2e7
doc/mkdocdeps.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,
mkdocdeps.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/mkdocdeps.py