

def get_working_dir(self):
    file_name = self._active_file_name()
    if file_name:
        return os.path.realpath(os.path.dirname(file_name))
    else:
        try:
            return self.window.folders()[0]
        except IndexError:
            return ''

dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/Sublime Text 2/sublime-github/lib/git.py GitWindowCommand.get_working_dir/original