Question

Set environment variable path

  • Posted February 26, 2015

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.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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