Simplify handling of user notebook paths
Description
I just happened to look at this code and realise that it could be simpler in a couple of small ways.
How Has This Been Tested?
I believe the automated tests should cover it.
Types of changes
- Refactor (refactoring code with no functionality changes)
Checklist:
- My code follows the code style of this project.