now we can run files - thanks vish

This commit is contained in:
Jesse Andrews
2010-09-13 23:56:32 -07:00
parent 48bacdd68a
commit d37c77a67b

View File

@@ -156,6 +156,11 @@ class ShellCommands(object):
readline.parse_and_bind("tab:complete")
code.interact()
def script(self, path):
"""Runs the script from the specifed path with flags set properly.
arguments: path"""
exec(compile(open(path).read(), path, 'exec'), locals(), globals())
class RoleCommands(object):
"""Class for managing roles."""