Skip to content

Commit

Permalink
Working directory: Remove unneeded import
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jul 30, 2017
1 parent 2a001cf commit d08234c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spyder/plugins/workingdirectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from spyder.config.base import _, get_conf_path, get_home_dir
from spyder.plugins import SpyderPluginMixin
from spyder.plugins.configdialog import PluginConfigPage
from spyder.py3compat import PY2, to_text_string, getcwd
from spyder.py3compat import to_text_string, getcwd
from spyder.utils import encoding
from spyder.utils import icon_manager as ima
from spyder.utils.qthelpers import create_action
Expand Down Expand Up @@ -267,8 +267,7 @@ def chdir(self, directory, browsing_history=False,
refresh_explorer=True, refresh_console=True):
"""Set directory as working directory"""
if directory:
directory = to_text_string(directory)
directory = osp.abspath(directory)
directory = osp.abspath(to_text_string(directory))

# Working directory history management
if browsing_history:
Expand Down

0 comments on commit d08234c

Please sign in to comment.