Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/timelinelib
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-09-08 07:55:01 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-09-08 07:55:01 (GMT)
commit1f400b920c110119e2975d7199c59c328c96a4ef (patch)
tree596a86166bfa0a7f252172c41e17fcc3e0d58bd5 /timelinelib
parentadc941f269597687c96dd97c61b0ad97387931a1 (diff)
make the usual changes to works in sugar
Diffstat (limited to 'timelinelib')
-rw-r--r--timelinelib/config/arguments.py14
-rw-r--r--timelinelib/wxgui/dialogs/mainframe.py1
2 files changed, 9 insertions, 6 deletions
diff --git a/timelinelib/config/arguments.py b/timelinelib/config/arguments.py
index 674af8b..4dd8fc9 100644
--- a/timelinelib/config/arguments.py
+++ b/timelinelib/config/arguments.py
@@ -35,16 +35,18 @@ class ApplicationArguments(object):
"-c", "--config-file", dest="config_file_path", default=None,
help="Path to config file")
- def parse_from(self, arguments):
- (self.options, self.arguments) = self.option_parser.parse_args(arguments)
+ def parse_from(self):
+ #(self.options, self.arguments) = self.option_parser.parse_args(arguments)
+ self.options = "{'config_file_path': None}"
+ self.arguments = []
def get_files(self):
return self.arguments
def get_config_file_path(self):
- if self.options.config_file_path:
- return self.options.config_file_path
- else:
- return os.path.join(
+ #if self.options.config_file_path:
+ # return self.options.config_file_path
+ #else:
+ return os.path.join(
wx.StandardPaths.Get().GetUserConfigDir(),
".thetimelineproj.cfg")
diff --git a/timelinelib/wxgui/dialogs/mainframe.py b/timelinelib/wxgui/dialogs/mainframe.py
index 7aed5f1..51eb64f 100644
--- a/timelinelib/wxgui/dialogs/mainframe.py
+++ b/timelinelib/wxgui/dialogs/mainframe.py
@@ -303,6 +303,7 @@ class MainFrame(wx.Frame):
def _mnu_file_exit_on_click(self, evt):
self.Close()
+ exit()
def _create_edit_menu(self, main_menu_bar):
edit_menu = wx.Menu()