Enable running without VENV
This commit is contained in:
		
							parent
							
								
									fd092e9cc6
								
							
						
					
					
						commit
						f729190267
					
				
							
								
								
									
										8
									
								
								run.sh
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								run.sh
									
									
									
									
									
								
							@ -4,7 +4,13 @@
 | 
				
			|||||||
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 | 
					cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# activate python venv
 | 
					# activate python venv
 | 
				
			||||||
source ./venv/bin/activate
 | 
					VENV=./venv/bin/activate
 | 
				
			||||||
 | 
					if [ -f "$VENV" ]; then
 | 
				
			||||||
 | 
					    echo "activating virtual env: $VENV"
 | 
				
			||||||
 | 
					    source $VENV
 | 
				
			||||||
 | 
					else 
 | 
				
			||||||
 | 
					    echo "WARNING: unable to get venv, maybe it will still work..."
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# set gf2 location
 | 
					# set gf2 location
 | 
				
			||||||
export GF_FOLDER="/net/nas/resources/corpus/gigafida/v2.0/gigafida_dedup/tei/data/"
 | 
					export GF_FOLDER="/net/nas/resources/corpus/gigafida/v2.0/gigafida_dedup/tei/data/"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user