Contents Menu Expand Light mode Dark mode Auto light/dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Betty 0.4.0a2 documentation
Logo
Betty 0.4.0a2 documentation
  • Installation
    • Installation via pip
    • Installation from source
  • Usage
    • Ancestry
      • Citation
      • Dates
      • Enclosure
      • Event
      • Event Type
      • File
      • Link
      • Media Type
      • Note
      • Person
      • Person Name
      • Place
      • Place Name
      • Presence
      • Presence Role
      • Privacy
      • Source
    • Asset Management
    • The command line
    • Application configuration
    • Environment variables
    • Extensions
      • The Cotton Candy extension
      • The Deriver extension
      • The Gramps extension
      • The HTTP API Documentation extension
      • The Maps extension
      • The nginx extension
      • The Privatizer extension
      • The Trees extension
      • The Wikipedia extension
    • GEDCOM
    • npm
    • Projects
      • Project configuration
    • Templating
      • Filters
      • Globals
      • Tests
    • Translations
  • Development
    • Developing a Betty extension
    • Working on Betty’s translations
    • Testing Betty’s source code
  • API Documentation
  • About
    • Contributing to Betty
    • Copyright & license
Back to top
View this page

betty.path module¶

Provide path handling utilities.

betty.path.rootname(source_path: pathlib.Path) → pathlib.Path[source]¶

Get a path’s root name, such as / or `C:`.

Parameters:

source_path (pathlib.Path)

Return type:

pathlib.Path

Copyright © Bart Feenstra and contributors
Made with Sphinx and @pradyunsg's Furo
On this page
  • betty.path module
    • rootname()