Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignaciorodriguez@sugarlabs.org>2012-12-21 17:14:36 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2012-12-21 17:14:36 (GMT)
commitb5d32a689de439763301da55eae433cc34ce23bc (patch)
tree8e13a58b20f20190c6b21d85813fe0198828963b
parent656f0f1b10b2df5081e51f10948303d6480094f2 (diff)
Ahora edita: activity.info y version
-rw-r--r--Change.py29
1 files changed, 25 insertions, 4 deletions
diff --git a/Change.py b/Change.py
index 5667d1f..3a0d0bf 100644
--- a/Change.py
+++ b/Change.py
@@ -2,12 +2,33 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Ignacio Rodriguez
# Actualiza la version de compress
+import sys
+sys.stdout.write('\x1B[36m')
print 'Versión actual:'+str(open('version','r').read())
-c = raw_input('Desea cambiar la versión de compress [Si/No]:').lower()
-if c == 'si':
+listo = False
+def act():
ver = str(int(raw_input('Versión [Numero Entero]:')))
archivo = open('version','w')
archivo.write(ver)
archivo.close()
-if c == 'no':
- exit('Como tu digas..')
+ activity = """[Activity]
+name= Compress
+activity_version ="""+ver+"""
+show_launcher = 1
+bundle_id = org.ceibaljam.Compress
+exec = sugar-activity Compress.Compress -s
+icon = Compress
+license = GPLv3+"""
+ archivoac = open('activity/activity.info','w')
+ archivoac.write(activity)
+ archivoac.close()
+while not listo:
+ c = raw_input('Desea cambiar la versión de compress [Si/No]:').lower()
+ if c == 'si':
+ act()
+ listo = True
+ print 'Listo :D'
+ elif c == 'no':
+ exit('Como tu digas..')
+ else:
+ print 'Opción desconocida, intente de nuevo'