Fixing the run script to work from crazy paths
This commit is contained in:
		
							parent
							
								
									c59307c6d1
								
							
						
					
					
						commit
						867d43278d
					
				|  | @ -7,12 +7,15 @@ | ||||||
| # to invoke if it notices things not quite right). | # to invoke if it notices things not quite right). | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | DIR="$( cd "$( dirname "$0" )" && pwd )" | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| # Check to see if setup. | # Check to see if setup. | ||||||
| if [ ! -d "local_virtualenv" ]; then | if [ ! -d "$DIR/local_virtualenv" ]; then | ||||||
|   echo "Missing local virtualenv - setting up..." |   echo "Missing local virtualenv - setting up..." | ||||||
|   ./setup-local.sh |   $DIR/setup-local.sh | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| source local_virtualenv/bin/activate | source $DIR/local_virtualenv/bin/activate | ||||||
| python anvil/manage.py "$@" | python $DIR/anvil/manage.py "$@" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue