Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #222 from tuvistavie/master
Browse files Browse the repository at this point in the history
Fix bug when opening single files in ST3
  • Loading branch information
quarnster committed Jun 4, 2013
2 parents fbb0cd8 + 0f44ffc commit e57cbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internals/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def expand_path(value, window):
]
view = window.active_view()
project_path = None
if hasattr(window, "project_file_name"):
if hasattr(window, "project_file_name") and window.project_file_name() is not None:
project_path = os.path.split(window.project_file_name())[0]
else:
for f in window.folders():
Expand Down

0 comments on commit e57cbd1

Please sign in to comment.