Moved backup.py to path/
This moves the backup functions to a more reasonable place.
This commit is contained in:
parent
a88f8225a7
commit
c6f48165f3
|
@ -1,13 +1,18 @@
|
|||
# Bryan Schumaker (11/12/2010)
|
||||
|
||||
import libsaria
|
||||
from libsaria import path
|
||||
from libsaria.sources import library
|
||||
import xm as xml
|
||||
import libsaria.xm as xml
|
||||
|
||||
add_child = xml.add_child
|
||||
add_text = xml.add_text
|
||||
get_attrs = library.get_attrs
|
||||
lib_file = path.join(path.saria_dir(), "library.xml")
|
||||
lib_file = "library"
|
||||
if libsaria.__dev__ == True:
|
||||
lib_file = lib_file + "-dev"
|
||||
lib_file += ".xml"
|
||||
lib_file = path.join(path.saria_dir(), lib_file)
|
||||
|
||||
def encode_attr(doc, node, attr, value):
|
||||
child = add_child(doc, node, attr)
|
|
@ -106,7 +106,7 @@ class ExportButton(Button):
|
|||
def __init__(self):
|
||||
Button.__init__(self, gtk.STOCK_CONVERT, gtk.ICON_SIZE_BUTTON)
|
||||
def clicked(self, button):
|
||||
from libsaria import backup
|
||||
from libsaria.path import backup
|
||||
backup.backup()
|
||||
|
||||
class RandomButton(gtk.ToggleButton):
|
||||
|
|
Loading…
Reference in New Issue