Skip to content

Commit e8e4d80

Browse files
committed
feat(show-in-file-manager): add usage examples
1 parent 13c83fc commit e8e4d80

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
4+
__author__ = "ipetrash"
5+
6+
7+
from pathlib import Path
8+
9+
# pip install show-in-file-manager==1.1.6
10+
from showinfm import show_in_file_manager
11+
12+
13+
current_dir: Path = Path(__file__).resolve().parent
14+
# show_in_file_manager(current_dir) # NOTE: TypeError: 'WindowsPath' object is not iterable
15+
show_in_file_manager(str(current_dir))
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
4+
__author__ = "ipetrash"
5+
6+
7+
from pathlib import Path
8+
9+
# pip install show-in-file-manager==1.1.6
10+
from showinfm import show_in_file_manager
11+
12+
13+
current_file: Path = Path(__file__).resolve()
14+
# show_in_file_manager(current_file) # NOTE: TypeError: 'WindowsPath' object is not iterable
15+
show_in_file_manager(str(current_file))

0 commit comments

Comments
 (0)