Skip to content

Tiny Python library for setting the current working directory to the location of a Python script.

License

Notifications You must be signed in to change notification settings

CabbageDevelopment/chdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chdir

chdir is a tiny Python library for setting the current working directory to the location of a Python script.

How to install

pip install chdir

Why?

When writing Python scripts, you might be tired of doing this:

import os

os.chdir(os.path.dirname(os.path.abspath(__file__)))

With chdir, you can do this:

import chdir

chdir.here(__file__)

About

Tiny Python library for setting the current working directory to the location of a Python script.

Topics

Resources

License

Stars

Watchers

Forks

Languages