mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-10-31 01:55:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			393 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			393 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # Script to run the order hints processor with the virtual environment
 | |
| 
 | |
| cd "$(dirname "$0")"
 | |
| 
 | |
| # Check if virtual environment exists
 | |
| if [ ! -d "venv" ]; then
 | |
|     echo "Creating virtual environment..."
 | |
|     python -m venv venv
 | |
|     source venv/bin/activate
 | |
|     pip install lxml
 | |
| else
 | |
|     source venv/bin/activate
 | |
| fi
 | |
| 
 | |
| # Run the script with passed arguments
 | |
| python add_order_hints.py "$@" | 
