Skip to main content

This library offers concise manners to modify list sys.path. The user should not need to import module sys.

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'importer le module sys.

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.

ENGLISH

This library offers concise manners to modify list sys.path. The user should not need to import module sys.

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.

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-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

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