Skip to content

Commit 75e643a

Browse files
committed
UPDATE: script updated for windows machine
1 parent 9ff406b commit 75e643a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backends/advanced/scripts/create_plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def create_plugin(plugin_name: str, force: bool = False):
7272

7373
init_file = plugin_dir / '__init__.py'
7474
print(f"📝 Creating {init_file}")
75-
init_file.write_text(init_content)
75+
init_file.write_text(init_content, encoding="utf-8")
7676

7777
# Create plugin.py with template
7878
plugin_content = f'''"""
@@ -273,7 +273,7 @@ async def _my_helper_method(self, data: Any) -> Any:
273273

274274
plugin_file = plugin_dir / 'plugin.py'
275275
print(f"📝 Creating {plugin_file}")
276-
plugin_file.write_text(plugin_content)
276+
plugin_file.write_text(plugin_content,encoding="utf-8")
277277

278278
# Create README.md
279279
readme_content = f'''# {class_name}
@@ -367,7 +367,7 @@ async def _my_helper_method(self, data: Any) -> Any:
367367

368368
readme_file = plugin_dir / 'README.md'
369369
print(f"📝 Creating {readme_file}")
370-
readme_file.write_text(readme_content)
370+
readme_file.write_text(readme_content, encoding="utf-8")
371371

372372
# Print success message and next steps
373373
print(f"\n✅ Plugin '{plugin_name}' created successfully!\n")

0 commit comments

Comments
 (0)