diff options
author | Cristian García <cristian99garcia@gmail.com> | 2013-04-20 16:36:51 (GMT) |
---|---|---|
committer | Cristian García <cristian99garcia@gmail.com> | 2013-04-20 16:36:51 (GMT) |
commit | c06455f7c5ce05f970d9ec92893517ee2c415139 (patch) | |
tree | 96bbdd7eff06cc2bbfe7fbec4941816b67a3f6a8 | |
parent | b585ea6aa2ff41550385172c2ea3d3ed8cfb8bc3 (diff) |
Corrigiendo error en la linea 155 del archivo Widgets.py
-rw-r--r-- | Archivos.py | 20 | ||||
-rw-r--r-- | Archivos.pyc | bin | 17339 -> 16972 bytes | |||
-rw-r--r-- | Widgets.py | 4 | ||||
-rw-r--r-- | Widgets.pyc | bin | 13576 -> 14078 bytes |
4 files changed, 6 insertions, 18 deletions
diff --git a/Archivos.py b/Archivos.py index 14af21a..7253315 100644 --- a/Archivos.py +++ b/Archivos.py @@ -19,13 +19,12 @@ PENDRIVE = os.path.join(DIRECCION, 'pendrive.svg') DIR_SIN_PER = os.path.join(DIRECCION, 'directory_dennied.svg') FILE_SIN_PER = os.path.join(DIRECCION, 'file_dennied.svg') + images = ('svg', 'png', 'gif', 'jpg', 'jpeg', 'xmp', 'ico') videos = ('flv', '.mp4', '.mpa', '.mpe', '.mpeg', '.mpg') -local = os.path.expanduser('~/.local') -share = os.path.join(local, 'share') -trash = os.path.join(share, 'Trash') -PAPELERA = os.path.join(trash, 'files') + +PAPELERA = os.path.expanduser('~/.local/share/Trash/files') def intentar_abrir(direccion): @@ -42,18 +41,7 @@ def intentar_abrir(direccion): def crear_papelera(): """Crea los directorios de la papelera""" - def crear(direccion): - if not os.path.exists(direccion): - os.mkdir(direccion) - - try: - crear(local) - crear(share) - crear(trash) - crear(PAPELERA) - - except: - pass + os.makedirs(PAPELERA) def get_tamanio(direccion): diff --git a/Archivos.pyc b/Archivos.pyc Binary files differindex e109f52..df31c2a 100644 --- a/Archivos.pyc +++ b/Archivos.pyc @@ -151,9 +151,9 @@ class Area(Gtk.IconView): 'cambio-de-direccion': (GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)), 'cambio-de-mensaje': (GObject.SIGNAL_RUN_FIRST, - GObject.TYPE_NONE, (GObject.TYPE_STRING,)) + GObject.TYPE_NONE, (GObject.TYPE_STRING,)), 'copiar': (GObject.SIGNAL_RUN_FIRST, - GObject.TYPE_NONE, (GObject.TYPE_STRING,)) + GObject.TYPE_NONE, (GObject.TYPE_STRING,)), 'propiedades': (GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_STRING,))} diff --git a/Widgets.pyc b/Widgets.pyc Binary files differindex 905bba1..fe649c6 100644 --- a/Widgets.pyc +++ b/Widgets.pyc |