Skip to main content

Find the variable full-path of your repo

Project description


This will attempt to find the root dir of your repo starting with the absolute path of the dir you are currently in To still allow you to name subdirs the same as the repo the script will return the directory once it has found the named dir and is within a dir not equal to the parameter The script will continue to loop until this criteria is met, or until it reaches root - where it will raise a FileNotFoundError

:param repo:    The name of your repository
:param here:    The path you are currently in, or relative to
                entered path
:return:        The full path of your repo within your system

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for root-finder, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size root_finder-1.0.1-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size root_finder-1.0.1.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page