88 |
# The ImportError exception was raised from |
# The ImportError exception was raised from |
89 |
# inside the thubanstart module. |
# inside the thubanstart module. |
90 |
sys.stderr.write(_("Cannot import the thubanstart" |
sys.stderr.write(_("Cannot import the thubanstart" |
91 |
"module\n")) |
" module\n")) |
92 |
traceback.print_exc(None, sys.stderr) |
traceback.print_exc(None, sys.stderr) |
93 |
else: |
else: |
94 |
# There's no thubanstart module. |
# There's no thubanstart module. |
191 |
self.SetSession(create_empty_session()) |
self.SetSession(create_empty_session()) |
192 |
|
|
193 |
def OpenSession(self, filename): |
def OpenSession(self, filename): |
194 |
|
"""Open the session in the file named filename""" |
195 |
|
# Make sure we deal with an absolute pathname. Otherwise we can |
196 |
|
# get problems when saving because the saving code expects an |
197 |
|
# absolute directory name |
198 |
|
filename = os.path.abspath(filename) |
199 |
session = load_session(filename) |
session = load_session(filename) |
200 |
session.SetFilename(filename) |
session.SetFilename(filename) |
201 |
session.UnsetModified() |
session.UnsetModified() |