Question

Set environment variable path

Posted February 26, 2015 3.6k views

I have installed pip on my Ubuntu 14 server. I have created a ogr2ogr.py file how can i run this file globally by setting environment variable.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

You can add the folder this file is in to your path by adding the following line to the .bashrc or .profile file in your home directory:

export PATH=$PATH:/path/to/your/file
Submit an Answer