chdir-1.0.0
توضیحات
Tiny library for setting the working directory to the location of a Python script.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chdir-1.0.0 |
| نام | chdir |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sam McCormack |
| ایمیل نویسنده | cabbagedevelopment@gmail.com |
| آدرس صفحه اصلی | https://github.com/CabbageDevelopment/chdir |
| آدرس اینترنتی | https://pypi.org/project/chdir/ |
| مجوز | - |
# 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:
```python
import os
os.chdir(os.path.dirname(os.path.abspath(__file__)))
```
With `chdir`, you can do this:
```python
import chdir
chdir.here(__file__)
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| ~=3.6 | Python |
نحوه نصب
نصب پکیج whl chdir-1.0.0:
pip install chdir-1.0.0.whl
نصب پکیج tar.gz chdir-1.0.0:
pip install chdir-1.0.0.tar.gz