Hello,<div><br></div><div>In ipython (v.11) terminal app I can add a custom path to "sys.path" using the following lines in ipython_config.py:</div><div><br></div><div>app = c.TerminalIPythonApp</div><div><div>lines = """</div>
<div>import sys</div><div>sys.path.append("/home/phn/projects/pythonlib")</div><div>"""</div><div>if hasattr(app, 'exec_lines'):</div><div> app.exec_lines.append(lines)</div><div>else:</div>
<div> app.exec_lines = [lines]</div></div><div><br></div><div>In ipython qtconsole I tried adding the following, in both Python 2.6 and 2.7, to ipython_qtconsole_config.py but couldn't get it to work. </div><div><br>
</div><div><div>lines = """</div><div>import sys</div><div>sys.path.append("/home/phn/projects/pythonlib")</div><div>"""</div><div>if hasattr(app, 'exec_lines'):</div><div> app.exec_lines.append(lines)</div>
<div>else:</div><div> app.exec_lines = [lines]</div></div><div><br></div><div>There are no error messages. </div><div><br></div><div>Am I using the wrong app? How do I get this to work?</div><div><br></div><div>Thanks very much,</div>
<div>Prasanth</div>