Tiny library for setting the working directory to the location of a Python script.
Project description
chdir
chdir
is a tiny Python library for setting the current working directory to the location of a Python script.
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__)
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
chdir-1.0.0.tar.gz
(2.4 kB
view details)
Built Distribution
chdir-1.0.0-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file chdir-1.0.0.tar.gz
.
File metadata
- Download URL: chdir-1.0.0.tar.gz
- Upload date:
- Size: 2.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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d28caf9f4fe2b2d78d5311da35956777c651174e8eb7d9d63218bf4a46d00ea |
|
MD5 | f1e122d168b6ce12d16a5f64cdc152a0 |
|
BLAKE2b-256 | 35d6a87936620a54c9e94b6c72b7df09fe50998fdcee4450522109924202f321 |
File details
Details for the file chdir-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: chdir-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80185f8e6f7043141ca9640e8d61fee3c1f7108bd3721fe51e8f925d2fb9a4fb |
|
MD5 | 0451922942794598d824d6f10c08697d |
|
BLAKE2b-256 | 2667b07fc68c02ae6f025f87d202dfca7a0bf67a695e3469cfe9dba905135471 |