summaryrefslogtreecommitdiff
path: root/pidl/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-22 01:51:38 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-22 01:51:38 +0100
commit2c58c9497cb6a15d03626864585f0437949ee6f6 (patch)
tree85a267c746e06f3cde94dc91c12aa53e7ab08b4a /pidl/pidl
parent9a7c64f1dce7560c94df99c45eb5c75903cf0e6b (diff)
downloadsamba-2c58c9497cb6a15d03626864585f0437949ee6f6.tar.gz
samba-2c58c9497cb6a15d03626864585f0437949ee6f6.tar.bz2
samba-2c58c9497cb6a15d03626864585f0437949ee6f6.zip
Import types from other Python mechanisms using the Python import mechanism, to ensure they are initialized.
Diffstat (limited to 'pidl/pidl')
-rwxr-xr-xpidl/pidl5
1 files changed, 2 insertions, 3 deletions
diff --git a/pidl/pidl b/pidl/pidl
index 02817c093b..bc0bb3524b 100755
--- a/pidl/pidl
+++ b/pidl/pidl
@@ -609,7 +609,7 @@ sub process_file($)
}
require Parse::Pidl::Typelist;
- Parse::Pidl::Typelist::LoadIdl($pidl);
+ Parse::Pidl::Typelist::LoadIdl($pidl, $basename);
if (defined($opt_dump_idl_tree)) {
my($pidl_file) = ($opt_dump_idl_tree or "$outputdir/$basename.pidl");
@@ -697,10 +697,9 @@ sub process_file($)
if (defined($opt_python)) {
require Parse::Pidl::Samba4::Python;
my $generator = new Parse::Pidl::Samba4::Python();
- my ($hdr,$prsr) = $generator->Parse($basename, $ndr,
+ my ($prsr) = $generator->Parse($basename, $ndr,
"$outputdir/ndr_$basename\_c.h", $h_filename);
FileSave("$outputdir/py_$basename.c", $prsr);
- FileSave("$outputdir/py_$basename.h", $hdr);
}
if (defined($opt_server)) {