A simple context manager for entering and leaving a directory
Project description
Usage
import os
from enterdir import EnterDir
def print_cwd():
print(os.getcwd())
print_cwd()
with EnterDir('path/to/dir') as d:
print_cwd()
print_cwd()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
enterdir-0.0.2.tar.gz
(1.4 kB
view details)
Built Distribution
File details
Details for the file enterdir-0.0.2.tar.gz
.
File metadata
- Download URL: enterdir-0.0.2.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d9cdb603328bf943abeddc3f284d4e4c48be6b4e3f40beaa735b549702f3c7 |
|
MD5 | 13917e30fccb863df6a6e46e79928689 |
|
BLAKE2b-256 | bfa74f62992274b7b99f41d46df4e410e3f5520e447de676b30ba8bbaffcb1c1 |
File details
Details for the file enterdir-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: enterdir-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f935eaef6c8b6d30a0f06155a66813f67b22b48716d48d61236467b8e3f05857 |
|
MD5 | de72ddb915cee62ec78a86df8b083124 |
|
BLAKE2b-256 | ce775deb7cb7327444f493586e67ae5cfbc25fba256eef192b5dd563e5a1e726 |