We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 572497a commit 8084937Copy full SHA for 8084937
lib/python-debugger-view.coffee
@@ -65,7 +65,7 @@ class PythonDebuggerView extends View
65
editor = atom.workspace.getActiveTextEditor()
66
activePath = editor.getPath()
67
relative = atom.project.relativizePath(activePath)
68
- pathToWorkspace = relative[0] || path.dirname(activePath)
+ pathToWorkspace = relative[0] || (path.dirname(activePath) if activePath?)
69
pathToWorkspace
70
71
runApp: ->
lib/python-debugger.coffee
@@ -46,4 +46,4 @@ module.exports = PythonDebugger =
46
47
activePath = editor?.getPath()
48
49
- themPaths = relative[0] || path.dirname(activePath)
+ themPaths = relative[0] || (path.dirname(activePath) if activePath?)
0 commit comments