]> sourceware.org Git - lvm2.git/commit
python: move lvm_init
authorDavid Teigland <teigland@redhat.com>
Wed, 11 May 2016 18:42:00 +0000 (13:42 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 16 May 2016 19:36:55 +0000 (14:36 -0500)
commit7ef152c07290c79f47a64b0fc81975ae52554919
tree5b3a3de225ff4b5acbc5cb03625cd7e304e6677f
parent57e9df7dc535bcba6124fce814323b63c6a0d779
python: move lvm_init

Only call lvm_init() when it's needed so that simply
loading the lvm python code in another program doesn't
make that program do lvm initialization.

The version call doesn't need a handle.

The garbage collection can just do lvm_quit to destroy
the command.  The next call that needs lvm_init will
do it first.
python/liblvm.c
This page took 0.034458 seconds and 5 git commands to generate.