|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
[pydev - Users] how to set working directory for console?Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7613943 By: neurosurg Hi, I start an interactive console for a currently edited file. For some reason working directory isn't set to the directory the file is located in. It is set to Eclipse's installation directory: >>> os.system("pwd") /cygdrive/p/dev/eclipse3.5 and this is also immune to the following: os.system("cd /path/to/the/right/directory") I've walked to the property entries that I've found somewhat relevant: Project-->Settings-->"Run/Debug Settings" --> "myproject mymodule.py" -->"Edit" -->"Arguments"-->"Working directory" --> "Other": ${workspace_loc:myproject/src} This setting I find OK. Why then the current dir isn't ${workspace_loc:myproject/src} ? How could I fix it? regards Valery ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pydev-users mailing list Pydev-users@... https://lists.sourceforge.net/lists/listinfo/pydev-users |
|
|
[pydev - Users] RE: how to set working directory for console?Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7614119 By: fabioz Hi, That's correct, right now it only gets the info for the pythonpath for the current editor, and not the working dir. Now, to change the current dir, if you use os.chdir(path) (instead of going for shell commands -- which won't affect the current shell, only the shell you spawned) it should work. Also, use the python api to get the dir too (os.getcwd()). Cheers, Fabio ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pydev-users mailing list Pydev-users@... https://lists.sourceforge.net/lists/listinfo/pydev-users |
|
|
[pydev - Users] RE: how to set working directory for console?Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7614736 By: neurosurg Hi, Fabio, thanks for the solution. BTW, any plans to address this in upcoming releases? Would be nice... :) regards Valery ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pydev-users mailing list Pydev-users@... https://lists.sourceforge.net/lists/listinfo/pydev-users |
| Free embeddable forum powered by Nabble | Forum Help |