Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    uniquepath 1.0

    Download button

    No screenshots available
    Downloads: 78  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jerome Lecomte | More programs
    MIT/X Consortium Lic... / FREE
    June 5th, 2012, 05:37 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    uniquepath description

    Simple utility to remove duplicate and manipulate PATH-like environment variables (e.g. LD_LIBRARY_PATH, MANPATH)

    uniquepath is a simple utility to remove duplicates in PATH-like environment variables.

    On Unix, it outputs the transformed variable so it can be used like this :

     PATH=`uniquepath.py PATH`

    On Windows, there is a helper .bat script that achieve the same effect (even if it is not as explicit):

    C:\uniquepath.bat PATH

    The command line also offers ways to append, prepend, and remove path to the variable and it supports wildcard (usefull for remove).

    Usage

    usage: uniquepath.py [-h] [-v] [-r PATH] [-a PATH] [-p PATH]
     [--separator CHAR] [--debug]
     variable

    positional arguments:
     variable environment variable or variable value to process.

    optional arguments:
     -h, --help show this help message and exit
     -v, --version show program's version number and exit
     -r PATH, --remove PATH
     remove value(s) from the environment variable.
     -a PATH, --append PATH
     append value(s) to the environment variable.
     -p PATH, --prepend PATH
     prepend value(s) to the environment variable.
     --separator CHAR changes the path separator (default is os specific).
     --debug different output format more readable but invalid. DO
     NOT ASSIGN to an environment variable.

    On Windows: use uniquepath.bat helper script.

    There are also 2 usage examples in the directory pyenv.bat (to switch python version) and the helper script uniquepath.bat for windows.

    Installation

    Download uniquepath.py from http://github.com/elmotec/uniquepath


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    remove duplicates | Python library | Python | duplicate | removal

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM