search for: 1e043fc

Displaying 3 results from an estimated 3 matches for "1e043fc".

Did you mean: 140943fc
2015 Sep 16
0
[PATCH] python: Set program name to the true name instead of 'python'.
...4f03d5abf636f1e5 (for Perl), any Python program has the handle program name field set to 'python'. Set it to the true name (derived from sys.argv[0]). --- generator/python.ml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/generator/python.ml b/generator/python.ml index c1128f8..1e043fc 100644 --- a/generator/python.ml +++ b/generator/python.ml @@ -671,6 +671,8 @@ logvols = g.lvs () \"\"\" +import os +import sys import libguestfsmod "; @@ -714,6 +716,10 @@ class GuestFS(object): self._o = libguestfsmod.create (flags) self._python_retu...
2015 Oct 20
3
[PATCH 1/2] generator: add a RelativePathnameList parameter type
...| DeviceList n -> + | DeviceList n + | RelativePathnameList n -> pr " guestfs_efree_stringlist (%s);\n" n; pr "\n" | Bool _ | Int _ | Int64 _ | Pointer _ -> () diff --git a/generator/python.ml b/generator/python.ml index 1e043fc..b8329a5 100644 --- a/generator/python.ml +++ b/generator/python.ml @@ -292,7 +292,7 @@ put_table (char * const * const argv) | BufferIn n -> pr " const char *%s;\n" n; pr " Py_ssize_t %s_size;\n" n - | StringList n | DeviceList n -...
2015 Oct 21
2
[PATCH 1/2] generator: add a FilenameList parameter type
...| DeviceList n -> + | DeviceList n + | FilenameList n -> pr " guestfs_efree_stringlist (%s);\n" n; pr "\n" | Bool _ | Int _ | Int64 _ | Pointer _ -> () diff --git a/generator/python.ml b/generator/python.ml index 1e043fc..9b3037c 100644 --- a/generator/python.ml +++ b/generator/python.ml @@ -292,7 +292,7 @@ put_table (char * const * const argv) | BufferIn n -> pr " const char *%s;\n" n; pr " Py_ssize_t %s_size;\n" n - | StringList n | DeviceList n -...