File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 17
17
"""
18
18
19
19
import wx
20
- import os
21
20
22
21
from pathlib import Path
23
22
@@ -212,7 +211,7 @@ def OnAddGrassDB(self, event):
212
211
grassdb_node = self .tree .InsertGrassDb (name = grassdatabase )
213
212
214
213
# Offer to create a new location
215
- if grassdb_node and not os . listdir ( grassdatabase ):
214
+ if grassdb_node and not any ( Path ( grassdatabase ). iterdir () ):
216
215
message = _ (
217
216
"Do you want to create a new project (also known as location)?"
218
217
)
Original file line number Diff line number Diff line change @@ -268,7 +268,6 @@ ignore = [
268
268
# Other ignores:
269
269
"**.py" = [" PYI066" ]
270
270
"*/testsuite/**.py" = [" PT009" , " PT027" ]
271
- "gui/wxpython/datacatalog/catalog.py" = [" PTH208" ]
272
271
"gui/wxpython/dbmgr/base.py" = [" SIM115" ]
273
272
"gui/wxpython/gcp/manager.py" = [" PTH208" ]
274
273
"gui/wxpython/gmodeler/panels.py" = [" SIM115" ]
You can’t perform that action at this time.
0 commit comments