Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gryphon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monterey Phoenix
User Interfaces
Gryphon
Commits
b239007e
Commit
b239007e
authored
1 year ago
by
Allen, Bruce (CIV)
Browse files
Options
Downloads
Patches
Plain Diff
fix sorting for filenames
parent
c35201f2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/examples_menu.py
+2
-1
2 additions, 1 deletion
python/examples_menu.py
python/search_mp_files_dialog_wrapper.py
+1
-1
1 addition, 1 deletion
python/search_mp_files_dialog_wrapper.py
with
3 additions
and
2 deletions
python/examples_menu.py
+
2
−
1
View file @
b239007e
...
@@ -34,7 +34,8 @@ def fill_examples_menu(examples_menu, path, action_function):
...
@@ -34,7 +34,8 @@ def fill_examples_menu(examples_menu, path, action_function):
# add examples nestable under posix_dir_path
# add examples nestable under posix_dir_path
dir_menu
=
examples_menu
.
addMenu
(
posix_dir_path
.
name
)
dir_menu
=
examples_menu
.
addMenu
(
posix_dir_path
.
name
)
posix_paths
=
sorted
(
posix_dir_path
.
rglob
(
"
*.mp
"
))
posix_paths
=
sorted
(
posix_dir_path
.
rglob
(
"
*.mp
"
),
key
=
lambda
x
:
x
.
name
.
casefold
())
_add_paths
(
posix_dir_path
,
posix_paths
,
dir_menu
,
action_function
)
_add_paths
(
posix_dir_path
,
posix_paths
,
dir_menu
,
action_function
)
# add top-level examples
# add top-level examples
...
...
This diff is collapsed.
Click to expand it.
python/search_mp_files_dialog_wrapper.py
+
1
−
1
View file @
b239007e
...
@@ -187,7 +187,7 @@ class FileMetadataTableView(QTableView):
...
@@ -187,7 +187,7 @@ class FileMetadataTableView(QTableView):
def
_append_library
(
library_path
,
file_metadata_list
):
def
_append_library
(
library_path
,
file_metadata_list
):
p
=
Path
(
library_path
)
p
=
Path
(
library_path
)
posix_paths
=
sorted
(
p
.
rglob
(
"
*.mp
"
))
posix_paths
=
sorted
(
p
.
rglob
(
"
*.mp
"
)
,
key
=
lambda
x
:
x
.
name
.
casefold
()
)
if
verbose
():
if
verbose
():
print
(
"
Reading library %s count %d
"
%
(
library_path
,
len
(
posix_paths
)))
print
(
"
Reading library %s count %d
"
%
(
library_path
,
len
(
posix_paths
)))
for
posix_path
in
posix_paths
:
for
posix_path
in
posix_paths
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment