Skip to main content

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_append ajoute le chemin donné à la fin de sys.path.
  • sp_contains indique si sys.path contient le chemin donné.
  • sp_remove enlève le chemin donné de sys.path.

Pour plus d'informations, consultez la documentation des fonctions et les démos 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_append appends the given path to the end of sys.path.
  • sp_contains indicates whether sys.path contains the given path.
  • sp_remove removes the given path from sys.path.

For more information, consult the functions' documentation and the demos in the source code repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syspathmodif-1.1.2.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file syspathmodif-1.1.2.tar.gz.

File metadata

  • Download URL: syspathmodif-1.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for syspathmodif-1.1.2.tar.gz
Algorithm Hash digest
SHA256 2b160ef083719fb5b3d56aa7b34ec9d40a41d36372b675f2f0b0fdb9bc4d7d35
MD5 ecd6ac1188b326b148c32bd14cfb2669
BLAKE2b-256 606cdedb32bc1395585f120a4678b20a378c7bf69f1be0456081ae7746dffe4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page