From c95088c68e98fd4ecbbcf18e211620dd547c5379 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 15 Dec 2014 11:57:35 +0000 Subject: [PATCH] tiny polish --- python/README.md | 2 +- python/Vips.py | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/python/README.md b/python/README.md index 94411c0a..e5fad021 100644 --- a/python/README.md +++ b/python/README.md @@ -17,5 +17,5 @@ pygobject area, for example: or - sudo cp Vips.py /usr/lib/python3.4/dist-packages/gi/overrides + sudo cp Vips.py /usr/lib/python3/dist-packages/gi/overrides diff --git a/python/Vips.py b/python/Vips.py index 6d1dbe39..205f6cbb 100644 --- a/python/Vips.py +++ b/python/Vips.py @@ -58,7 +58,8 @@ from gi.repository import GObject Vips = modules['Vips']._introspection_module __all__ = [] -# start up vips! +# start up vips! +# passing argv[0] helps vips find it's data files on some platforms Vips.init(sys.argv[0]) # need the gtypes for various vips types @@ -199,9 +200,6 @@ Vips.Argument = Argument class Operation(Vips.Operation): - def __init__(self): - Vips.Operation.__init__(self) - # find all the args for this op, sort into priority order # remember to ignore deprecated ones def get_args(self): @@ -535,10 +533,7 @@ def add_doc(value): return _doc class Image(Vips.Image): - # constructors, see class methods above - - def __init__(self): - Vips.Image.__init__(self) + # for constructors, see class methods above # output