Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix connection between the IPython Console and the Working Directory toolbar #3622

Merged
merged 4 commits into from
Oct 31, 2016

Conversation

ccordoba12
Copy link
Member

Fixes #3561

@ccordoba12 ccordoba12 added this to the v3.0.2 milestone Oct 31, 2016
@@ -837,6 +840,13 @@ def run_script_in_current_client(self, filename, wdir, args, debug,
"<br><br>Please open a new one and try again."
) % osp.basename(filename), QMessageBox.Ok)

def set_current_client_working_directory(self, directory):
"""Set current client working directory"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. at the end of the docstring

@@ -206,6 +206,10 @@ def get_source(self, objtxt):
if valid:
return getsource(obj)

def set_cwd(self, dirname):
"""Set current working directory"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. at the end of the docstring

@@ -81,6 +81,11 @@ def is_running(self):
else:
return False

def set_cwd(self, dirname):
"""Set shell current working directory"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. at the end of the docstring

def set_cwd(self, dirname):
"""Set shell current working directory"""
return self.silent_execute(
"get_ipython().kernel.set_cwd(r'%s')" % dirname)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format is nicer to use

@ccordoba12 ccordoba12 merged commit 6fbed96 into spyder-ide:3.x Oct 31, 2016
@ccordoba12 ccordoba12 deleted the fix-cwd-toolbar branch October 31, 2016 15:50
ccordoba12 added a commit that referenced this pull request Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants