Thanks to visit codestin.com
Credit goes to github.com

Skip to content

paul-wilkinson/uvprojx-sort-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

uvprojx-sort-files

Sort the groups of files in a Keil uVision .uvprojx file.

As far as I can tell, uVision doesn't offer the ability to sort the order the source files appear in the project window. One could manually sort it via the "Manage Project Items" dialog, but that's too laborious for me.

This script will alphabetically sort the source files within a group, with the file's path as the sort key.

Usage

$ uvprojx-sort-files.py -h

usage: uvprojx-sort-files.py [-h] uvprojx

Sort the groups of files in a Keil uVision .uvprojx file. Modifies the file
in-place.

positional arguments:
  uvprojx     The path to the .uvprojx file.

optional arguments:
  -h, --help  show this help message and exit

Example: uvprojx-sort-files.py MyProject.uvprojx

It modifies the .uvprojx in place, so in Windows Explorer you can drag-and-drop the .uvprojx on to uvprojx-sort-files.py.

Tested on

  • Python 2.7.6
    • lxml 3.3.5
  • Keil uVision 5.14, 5.15.

About

Sort the groups of files in a Keil uVision .uvprojx file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published