mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	posix -> os
This commit is contained in:
		
							parent
							
								
									3bc034bb79
								
							
						
					
					
						commit
						25d7cafd8a
					
				
					 10 changed files with 35 additions and 35 deletions
				
			
		|  | @ -2,24 +2,24 @@ | |||
| 
 | ||||
| # Directory windows, a subclass of listwin | ||||
| 
 | ||||
| import os | ||||
| import gwin | ||||
| import listwin | ||||
| import anywin | ||||
| import path | ||||
| import dircache | ||||
| 
 | ||||
| def action(w, string, i, detail): | ||||
| 	(h, v), clicks, button, mask = detail | ||||
| 	if clicks == 2: | ||||
| 		name = path.join(w.name, string) | ||||
| 		name = os.path.join(w.name, string) | ||||
| 		try: | ||||
| 			w2 = anywin.open(name) | ||||
| 			w2.parent = w | ||||
| 		except posix.error, why: | ||||
| 		except os.error, why: | ||||
| 			stdwin.message('Can\'t open ' + name + ': ' + why[1]) | ||||
| 
 | ||||
| def open(name): | ||||
| 	name = path.join(name, '') | ||||
| 	name = os.path.join(name, '') | ||||
| 	list = dircache.opendir(name)[:] | ||||
| 	list.sort() | ||||
| 	dircache.annotate(name, list) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum