Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__name__ == __main__
1 parent 8644c7f commit 3792978Copy full SHA for 3792978
1 file changed
docs/source/conf.py
@@ -30,7 +30,10 @@
30
fname = 'autogen_{}.py'.format(name)
31
fpath = os.path.abspath(os.path.join('..', fname))
32
with open(fpath) as f:
33
- exec(compile(f.read(), fname, 'exec'), {'__file__': fpath})
+ exec(compile(f.read(), fname, 'exec'), {
34
+ '__file__': fpath,
35
+ '__name__': '__main__',
36
+ })
37
38
# If your extensions are in another directory, add it here. If the directory
39
# is relative to the documentation root, use os.path.abspath to make it
0 commit comments