Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcards don't work on Windows #51

Open
Awkor opened this issue Feb 8, 2020 · 1 comment
Open

Wildcards don't work on Windows #51

Awkor opened this issue Feb 8, 2020 · 1 comment
Labels
enhancement New feature or request formatter help wanted Extra attention is needed linter
Milestone

Comments

@Awkor
Copy link

Awkor commented Feb 8, 2020

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!

@Scony
Copy link
Owner

Scony commented Feb 8, 2020

Thanks! This is good idea.

@Scony Scony added enhancement New feature or request formatter linter labels Feb 8, 2020
@Scony Scony added the help wanted Extra attention is needed label Aug 22, 2021
@Scony Scony added this to the 3.x milestone Sep 17, 2022
@Scony Scony removed this from the 3.x milestone Feb 7, 2023
@Scony Scony added this to the 4.x milestone Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request formatter help wanted Extra attention is needed linter
Projects
Status: No status
Development

No branches or pull requests

2 participants