~boots-developers/boots/debian

« back to all changes in this revision

Viewing changes to boots/lib/console.py

  • Committer: Max Goodman
  • Date: 2010-03-24 07:11:53 UTC
  • Revision ID: chromakode@gmail.com-20100324071153-fn0omn5hnt72pzor
Expand '~' path syntax in the source command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
driver of any boots client."""
26
26
 
27
27
import sys
 
28
import os.path
28
29
import signal
29
30
 
30
31
from boots.api import api
328
329
    def meta_source(self, *file_list):
329
330
        for filepath in file_list:
330
331
            try:
331
 
                script_driver = ScriptDriver(self, filepath, self.config["lingo"])
 
332
                script_driver = ScriptDriver(self, os.path.expanduser(filepath), self.config["lingo"])
332
333
            except IOError as e:
333
334
                raise ConsoleError(_("Could not open file {0}").format(filepath))
334
335