summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchebee7i <chebee7i@gmail.com>2015-06-14 17:15:07 -0500
committerchebee7i <chebee7i@gmail.com>2015-06-14 17:15:07 -0500
commit0fa9f97468e102be929dbac14aa6ab33e738779b (patch)
tree802ab1e5b2d51a4e55cb54a95f733b800ef82a70
parent39a2f231aa2c6d648f3e6591e02a0defdc9bc8fd (diff)
downloadnetworkx-0fa9f97468e102be929dbac14aa6ab33e738779b.tar.gz
Remove shebang.
-rwxr-xr-xdoc/make_examples_rst.py5
-rwxr-xr-xdoc/make_gallery.py1
-rw-r--r--doc/source/conf.py15
3 files changed, 2 insertions, 19 deletions
diff --git a/doc/make_examples_rst.py b/doc/make_examples_rst.py
index 4897e90b..e9c0db9f 100755
--- a/doc/make_examples_rst.py
+++ b/doc/make_examples_rst.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
generate the rst files for the examples by iterating over the networkx examples
"""
@@ -28,7 +27,7 @@ def out_of_date(original, derived):
return (not os.path.exists(derived) or
os.stat(derived).st_mtime < os.stat(original).st_mtime)
-def main(exampledir,sourcedir):
+def main(exampledir,sourcedir):
noplot_regex = re.compile(r"#\s*-\*-\s*noplot\s*-\*-")
@@ -169,7 +168,7 @@ if __name__ == '__main__':
except:
arg0=sys.argv[0]
print("""
-Usage: %s exampledir sourcedir
+Usage: %s exampledir sourcedir
exampledir: a directory containing the python code for the examples.
sourcedir: a directory to put the generated documentation source for these examples.
diff --git a/doc/make_gallery.py b/doc/make_gallery.py
index fe772cb8..26572cf9 100755
--- a/doc/make_gallery.py
+++ b/doc/make_gallery.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
Generate a thumbnail gallery of examples.
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 01b35af6..d2f2ffb9 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -26,21 +26,6 @@ print("Building on ReadTheDocs: {}".format(on_rtd))
print
print("Current working directory: {}".format(os.path.abspath(os.curdir)))
print("Python: {}".format(sys.executable))
-print("sys.path: {}".format(sys.path))
-print
-print('/usr/local/lib/python2.7/dist-packages')
-print(os.listdir('/usr/local/lib/python2.7/dist-packages'))
-print
-print('/usr/local/lib/python2.7/site-packages')
-print(os.listdir('/usr/local/lib/python2.7/site-packages'))
-print
-print('/usr/lib/pymodules/python2.7')
-print(os.listdir('/usr/lib/pymodules/python2.7'))
-print
-import matplotlib
-print(matplotlib)
-
-sys.exit(1)
if on_rtd:
# Build is not via Makefile (yet).