Changeset 17
- Timestamp:
- 23/06/09 14:54:04 (4 years ago)
- File:
-
- 1 edited
-
trunk/manejador-de-proyecto.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manejador-de-proyecto.py
r13 r17 1 # -*- coding: utf-8 -*- 1 #!/usr/bin/env python 2 #coding=utf-8 3 ############################################################################# 4 # manejador-de-proyecto.py 5 # Copyright (C) Redolfi Javier, Henze Agustin 2009 <> 6 # 7 # manejador-de-proyecto.py is free software: you can redistribute it and/or modify it 8 # under the terms of the GNU General Public License as published by the 9 # Free Software Foundation, either version 3 of the License, or 10 # (at your option) any later version. 11 # 12 # manejador-de-proyecto.py is distributed in the hope that it will be useful, but 13 # WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 # See the GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License along 18 # with this program. If not, see <http://www.gnu.org/licenses/>. 19 ############################################################################# 2 20 3 21 import gedit, gtk, gtk.glade … … 808 826 for salida_ghdl in ghdl_process.stdout: 809 827 arreglo_salida = salida_ghdl.split("\n") 828 print arreglo_salida 829 print "despues de -m" 830 831 print fileName 832 # preguntamos si se creo el archivo vcd para el gtkwave 833 if os.path.exists('/home/javier/.gnome2/gedit/plugins/proyecto_1/nombre_entidad_testbench'): 834 print "existe el archivo para el gtkwave" 835 836 #ejecutamos el ejecutable para generar el vcd 837 ejecutable = fileName[:fileName.find('.')] 838 print ejecutable 839 ghdl_process = subprocess.Popen([fileName[:fileName.find('.')],"--vcd=" + fileName[:fileName.find('.')] + ".vcd" ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) 840 arreglo_salida = "" 841 for salida_ghdl in ghdl_process.stdout: 842 arreglo_salida = salida_ghdl.split("\n") 843 print arreglo_salida 844 print "despues de el ejecutable" 845 846 ghdl_process = subprocess.Popen(["gtkwave", fileName[:fileName.find('.')] + ".vcd"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) 847 arreglo_salida = "" 848 for salida_ghdl in ghdl_process.stdout: 849 arreglo_salida = salida_ghdl.split("\n") 850 print arreglo_salida 851 print "despues de el gtkwave" 810 852 811 853 class ProjectPlugin( gedit.Plugin ):
Note: See TracChangeset
for help on using the changeset viewer.
