Code

Changes between Version 9 and Version 10 of SimpleBashScriptToSetupDevelopmentEnvironment


Ignore:
Timestamp:
12/15/05 01:17:28 (8 years ago)
Author:
Pedro Algarvio <ufs@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SimpleBashScriptToSetupDevelopmentEnvironment

    v9 v10  
    2424 
    2525# Update our Python path 
    26 PYTHONPATH="$(echo $PYTHONPATH):$(dirname `pwd`)" 
     26if [ "$(echo $PYTHONPATH | grep $(dirname `pwd`))" == "" ]; then 
     27        PYTHONPATH="$(echo $PYTHONPATH):$(dirname `pwd`)" 
     28fi" 
    2729 
    2830# Setup DJANGO_SETTINGS_MODULE 
     
    6567 
    6668# Update our Python path 
    67 PYTHONPATH="$(echo $PYTHONPATH):$(dirname `pwd`)" 
     69if [ "$(echo $PYTHONPATH | grep $(dirname `pwd`))" == "" ]; then 
     70        PYTHONPATH="$(echo $PYTHONPATH):$(dirname `pwd`)" 
     71fi 
    6872 
    6973# Setup DJANGO_SETTINGS_MODULE