This library offers concise manners to modify list sys.path. The user should not need to directly interact with that list.
Project description
FRANÇAIS
Cette bibliothèque offre des manières concises de modifier la liste sys.path.
L'utilisateur ne devrait pas avoir besoin d'interagir directement avec cette
liste.
Contenu
Les fonctions de syspathmodif prennent un chemin de type str ou
pathlib.Path comme argument.
Elles convertissent les arguments de type pathlib.Path en str puisque
sys.path n'est censée contenir que des chaînes de caractères.
sp_appendajoute le chemin donné à la fin desys.path.sp_containsindique sisys.pathcontient le chemin donné.sp_removeenlève le chemin donné desys.path.
La documentation complète des fonctions est disponible dans le dépôt de code source.
ENGLISH
This library offers concise manners to modify list sys.path.
The user should not need to directly interact with that list.
Content
The functions in syspathmodif take a path of type str or pathlib.Path
as an argument.
They convert arguments of type pathlib.Path to str since sys.path is
supposed to contain only character strings.
sp_appendappends the given path to the end ofsys.path.sp_containsindicates whethersys.pathcontains the given path.sp_removeremoves the given path fromsys.path.
The functions' full documentation is available in the source code repository.
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
File details
Details for the file syspathmodif-1.1.0.tar.gz.
File metadata
- Download URL: syspathmodif-1.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7af66c158bc55c18f79b6d6ef1a007fef2f03ec5f1dcbd8aa75e92564909a57f
|
|
| MD5 |
40cc0f9c5ff3cb84d48d31ae1da4b4ba
|
|
| BLAKE2b-256 |
61d4d39f1ac00a9eb39e5529fd9d95cf756d32113e4a817db094efae26e3beb6
|