gdesk.core.shellmod module¶
- class gdesk.core.shellmod.Shell(workspace=None)¶
Bases:
object
- static add_sys_paths(sys_paths)¶
- edit(object)¶
Edit source file of object with external editor
- Parameters
objects – object from which the source code will be opened in an editor
- Returns
None
- edit_dbase(filename)¶
Edit a SQLite file with an external editor.
- edit_file(filename, lineno=0)¶
Edit the file with an external editor at a certain lineno.
- execfile(filepath, globals=None, locals=None)¶
Execute a Python file
- execfilews(filepath, wsname='__execfilews__')¶
Execute a Python file in a new workspace. Place the workspace in shell
- static get_completer_data(text, max=1000, wild=False)¶
- static get_live_paths()¶
- static get_sys_paths(customs_only=True)¶
List the sys.paths.
- Parameters
customs_only (bool) – List only paths not part of the python.exe directory.
- get_watcher_ports()¶
- getcodefile(object)¶
Find out which source or compiled file an object was defined in.
- info()¶
Print info about the current process
- input(message='')¶
- instance = None¶
- magic(cmd)¶
Magic commands like in IPython.
- static new_interactive_thread(cqs, guiproxy=None, client=True, console_id=None)¶
- popen(commands, shell=True, stdin=True)¶
- pprint(var)¶
Do a pretty print of var. The user can also use var!! to call this function.
- redirect_input()¶
- redirect_stdout()¶
- restore_input()¶
- restore_stdout()¶
- static set_live_paths(new_live_paths)¶
- static set_logger_level(level=20)¶
- static set_sys_paths(new_sys_paths)¶
Set new content for sys.path.
- start_in_this_thread(cqs, console_id=None)¶
- this_interpreter()¶
Return the interpreter related to this thread.