If your application has many modules and many scripts lets say 100, instead adding these lines in each and every file and model class, you can export simply in command prompt while running the script.
In linux terminal
This will work till you close the terminal. This avoid adding code in each and every script and you can change the library path anytime.