Skip to content

Commit e7d5b40

Browse files
committed
Detect current package regardless open file's type
1 parent d8591c1 commit e7d5b40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unittesting/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def current_package_name(self):
5555
view = self.window.active_view()
5656
if view and view.file_name():
5757
file_path = relative_to_spp(view.file_name())
58-
if file_path and file_path.endswith(".py"):
58+
if file_path:
5959
return file_path.split(os.sep)[1]
6060

6161
folders = self.window.folders()

0 commit comments

Comments
 (0)