Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
3bc8cb17
Commit
3bc8cb17
authored
Feb 14, 2017
by
Ghislain MARY
Browse files
Fix Python module build on Windows.
parent
1052d9fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
tools/python/apixml2python.py
tools/python/apixml2python.py
+6
-7
No files found.
tools/python/apixml2python.py
View file @
3bc8cb17
...
...
@@ -111,13 +111,12 @@ def generate(apixmlfile, outputfile):
m
=
LinphoneModule
(
tree
,
blacklisted_classes
,
blacklisted_events
,
blacklisted_functions
,
hand_written_functions
)
os
.
chdir
(
'apixml2python'
)
tmpfilename
=
outputfile
.
name
+
'.tmp'
f
=
open
(
tmpfilename
,
'w'
)
f
.
write
(
renderer
.
render
(
m
))
f
.
close
()
f
=
open
(
tmpfilename
,
'rU'
)
for
line
in
f
:
outputfile
.
write
(
line
)
f
.
close
()
with
open
(
tmpfilename
,
mode
=
'w'
)
as
f
:
f
.
write
(
renderer
.
render
(
m
))
with
open
(
tmpfilename
,
mode
=
'rU'
)
as
f
:
for
line
in
f
:
if
not
line
.
isspace
():
outputfile
.
write
(
line
)
os
.
unlink
(
tmpfilename
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment