mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-27 03:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			437 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			437 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env python3
 | |
| if __name__ == '__main__':
 | |
|     import sys
 | |
|     import pathlib
 | |
| 
 | |
|     executable = pathlib.Path(sys.executable or 'python3').name
 | |
|     print('WARNING: the pyenv script is deprecated in favour of '
 | |
|           f'`{executable} -m venv`', file=sys.stderr)
 | |
| 
 | |
|     rc = 1
 | |
|     try:
 | |
|         import venv
 | |
|         venv.main()
 | |
|         rc = 0
 | |
|     except Exception as e:
 | |
|         print('Error: %s' % e, file=sys.stderr)
 | |
|     sys.exit(rc)
 |