Skip to content
forked from hoh/Hereby

Small Python library for accessing files in the same folder as your code

License

Notifications You must be signed in to change notification settings

Minigrim0/Hereby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hereby

Python library for accessing files in the same folder as your code

Installation

pip install hereby

Usage

>>> from hereby import Here
>>> here = Here(__file__)

>>> f = here.open('file_next_to_sourcecode.txt')
>>> print(f.read())
...

>>> here.abspath('subfolder/something')
/home/someuser/documents/project/subfolder/something

About

Small Python library for accessing files in the same folder as your code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%