Skip to content
Snippets Groups Projects
Select Git revision
  • 1d420bbcb3be622c066176b7ce8c8e3c640e090f
  • master default protected
2 results

root_dir.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    root_dir.py 268 B
    #!/usr/bin/env python3
    
    '''
    helper script for getting the root directory of phybema
    
    '''
    
    import os.path
    
    def phybema_root_dir():
      # Path to this dir
      this_dir = os.path.dirname(os.path.abspath(__file__))
      # Path to the root dir
      return os.path.split(this_dir)[0]