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 hashes)