Skip to content

Commit

Permalink
Fixed the shebang lines on the Python scripts.
Browse files Browse the repository at this point in the history
Also, removed the one from modules/python/src2/cv.py and cleared its
executable bit, since it's not a script.
  • Loading branch information
Roman Donchenko committed Apr 11, 2013
1 parent ca56e99 commit 57d4c86
Show file tree
Hide file tree
Showing 82 changed files with 81 additions and 83 deletions.
2 changes: 1 addition & 1 deletion doc/check_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys, glob

Expand Down
2 changes: 1 addition & 1 deletion doc/check_docs2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import os, sys, fnmatch, re

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

# -*- coding: utf-8 -*-
#
Expand Down
2 changes: 1 addition & 1 deletion doc/ocv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
ocv domain, a modified copy of sphinx.domains.cpp + shpinx.domains.python.
Expand Down
2 changes: 1 addition & 1 deletion doc/patch_refman_latex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys

Expand Down
2 changes: 1 addition & 1 deletion doc/pattern_tools/gen_pattern.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

"""gen_pattern.py
To run:
Expand Down
2 changes: 1 addition & 1 deletion doc/pattern_tools/svgfig.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

# svgfig.py copyright (C) 2008 Jim Pivarski <[email protected]>
#
Expand Down
2 changes: 1 addition & 1 deletion doc/reformat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import os, sys, re

Expand Down
2 changes: 1 addition & 1 deletion modules/contrib/doc/facerec/src/create_csv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys
import os.path
Expand Down
2 changes: 1 addition & 1 deletion modules/gpu/misc/mark_nvidia.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys, re

Expand Down
2 changes: 1 addition & 1 deletion modules/java/check-tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys, os, re

Expand Down
2 changes: 1 addition & 1 deletion modules/java/generator/gen_java.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys, re, os.path
from string import Template
Expand Down
2 changes: 1 addition & 1 deletion modules/java/generator/gen_javadoc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import os, sys, re, string, glob
from optparse import OptionParser
Expand Down
2 changes: 1 addition & 1 deletion modules/java/generator/rst_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import os, sys, re, string, fnmatch
allmodules = ["core", "flann", "imgproc", "ml", "highgui", "video", "features2d", "calib3d", "objdetect", "legacy", "contrib", "gpu", "androidcamera", "java", "python", "stitching", "ts", "photo", "nonfree", "videostab", "ocl", "superres"]
Expand Down
2 changes: 0 additions & 2 deletions modules/python/src2/cv.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
#/usr/bin/env python

from cv2.cv import *
2 changes: 1 addition & 1 deletion modules/python/src2/gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys
from string import Template
Expand Down
2 changes: 1 addition & 1 deletion modules/python/src2/gen2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import hdr_parser, sys, re, os, cStringIO
from string import Template
Expand Down
2 changes: 1 addition & 1 deletion modules/python/src2/hdr_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import os, sys, re, string

Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/calchist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

# Calculating and displaying 2D Hue-Saturation histogram of a color image
import sys
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/camera_calibration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys
import math
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/findstereocorrespondence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys
import cv2.cv as cv
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/goodfeatures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import cv2.cv as cv
import unittest
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/leak1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import cv2.cv as cv
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/leak2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import cv2.cv as cv
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/leak3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import cv2.cv as cv
import math
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/leak4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import cv2.cv as cv
import math
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/precornerdetect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import cv2.cv as cv

Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import unittest
import random
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/test2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import unittest
import random
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/ticket_6.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import urllib
import cv2.cv as cv
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/tickets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import unittest
import random
Expand Down
2 changes: 1 addition & 1 deletion modules/python/test/transformations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

# -*- coding: utf-8 -*-
# transformations.py
Expand Down
2 changes: 1 addition & 1 deletion modules/ts/misc/testlog_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import sys, re, os.path
from xml.dom.minidom import parse
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/_coverage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Utility for measuring python opencv API coverage by samples.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/_doc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Scans current directory for *.py files and reports
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/asift.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Affine invariant feature-based image matching sample.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/browse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
browse.py
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/calibrate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import numpy as np
import cv2
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/camshift.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Camshift tracker
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/coherence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Coherence-enhancing filtering example
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/color_histogram.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import numpy as np
import cv2
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
This module contais some common routines used by other samples.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/contours.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
This program illustrates the use of findContours and drawContours.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/deconvolution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Wiener deconvolution.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Sample-launcher application.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/dft.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import cv2
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/digits.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
SVM and KNearest digit recognition.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/digits_adjust.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Digit recognition adjustment.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/digits_video.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import numpy as np
import cv2
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/distrans.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Distance transform sample.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/edge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
This sample demonstrates Canny edge detection.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/facedetect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import numpy as np
import cv2
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/feature_homography.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Feature homography
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/find_obj.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Feature-based image matching sample.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/fitline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Robust line fitting.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/floodfill.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Floodfill sample.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/gabor_threads.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
gabor_threads.py
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/gaussian_mix.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

import numpy as np
from numpy import random
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/hist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

''' This is a sample for histogram plotting for RGB images and grayscale images for better understanding of colour distribution

Expand Down
2 changes: 1 addition & 1 deletion samples/python2/inpaint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Inpainting sample.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/kmeans.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
K-means clusterization sample.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/lappyr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

''' An example of Laplacian Pyramid construction and merging.

Expand Down
2 changes: 1 addition & 1 deletion samples/python2/letter_recog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
The sample demonstrates how to train Random Trees classifier
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/lk_homography.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Lucas-Kanade homography tracker
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/lk_track.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Lucas-Kanade tracker
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/morphology.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
Morphology operations.
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/mosse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python

'''
MOSSE tracking sample
Expand Down
Loading

0 comments on commit 57d4c86

Please sign in to comment.