| 
									
										
										
										
											2007-01-08 18:06:59 +01:00
										 |  |  | #!/usr/bin/env python | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import pygtk | 
					
						
							|  |  |  | pygtk.require('2.0') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-09 12:32:32 +01:00
										 |  |  | import os | 
					
						
							|  |  |  | import sys | 
					
						
							| 
									
										
										
										
											2007-01-08 18:06:59 +01:00
										 |  |  | from sugar import env  | 
					
						
							| 
									
										
										
										
											2007-08-10 18:57:43 +02:00
										 |  |  | from sugar import util | 
					
						
							| 
									
										
										
										
											2007-01-08 18:06:59 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-04-15 12:26:50 +02:00
										 |  |  | sys.path.append(env.get_service_path('console')) | 
					
						
							| 
									
										
										
										
											2007-01-08 18:06:59 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-08-10 18:57:43 +02:00
										 |  |  | # change to the user's home directory if it is set | 
					
						
							|  |  |  | # root if not | 
					
						
							|  |  |  | os.chdir(os.environ.get('HOME', '/')) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #set the process title so it shows up as sugar-console not python | 
					
						
							|  |  |  | util.set_proc_title('sugar-console') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-09 12:32:32 +01:00
										 |  |  | import console |