godot-gdscript-toolkit
godot-gdscript-toolkit copied to clipboard
Wildcards don't work on Windows
trafficstars
E:\>gdformat *.gd
Traceback (most recent call last):
File "C:\Program Files (x86)\Python37-32\Scripts\gdformat-script.py", line 11, in <module>
load_entry_point('gdtoolkit==3.2.4', 'console_scripts', 'gdformat')()
File "c:\program files (x86)\python37-32\lib\site-packages\gdtoolkit\formatter\__main__.py", line 91, in main
with open(file_path, "r+") as fh:
OSError: [Errno 22] Invalid argument: '*.gd'
This is because the Windows console doesn't expand wildcards, but passes them directly to the script.
I'm no Python expert, but looking around I read that the glob module could be used to solve this issue.
I'll also use this issue to thank the developer and contributors of this amazing project!
Thanks! This is good idea.