mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix duplicate import generation
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
parent
7f0cebd442
commit
9d9fdd2f79
3 changed files with 10 additions and 6 deletions
|
@ -72,8 +72,9 @@ def main():
|
|||
|
||||
for webidl in webidls:
|
||||
filename = os.path.join(webidls_dir, webidl)
|
||||
prefix = "Bindings/%sBinding" % webidl[:-len(".webidl")]
|
||||
module = CGBindingRoot(config, prefix, filename).define()
|
||||
name = webidl[:-len(".webidl")]
|
||||
prefix = "Bindings/%sBinding" % name
|
||||
module = CGBindingRoot(config, prefix, filename, name).define()
|
||||
if module:
|
||||
with open(os.path.join(out_dir, prefix + ".rs"), "wb") as f:
|
||||
f.write(module.encode("utf-8"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue