Add __init__.py

This removes the need to add anything to commads.py for installation.
This commit is contained in:
Lukas Woell 2023-05-06 23:06:48 +02:00
parent c892d44717
commit 9817561478
No known key found for this signature in database
GPG Key ID: 00354C566FFC78BF
2 changed files with 2 additions and 7 deletions

View File

@ -9,19 +9,13 @@ This script draws menu to mount and unmount partitions using udisksctl and ncurs
- lsblk 2.3 or newer - lsblk 2.3 or newer
# How to install # How to install
Firstly you need to clone this repo to the plugins directory of ranger You need to clone this repo to the plugins directory of ranger
```Bash ```Bash
cd ~/.config/ranger/plugins cd ~/.config/ranger/plugins
git clone https://github.com/SL-RU/ranger_udisk_menu git clone https://github.com/SL-RU/ranger_udisk_menu
``` ```
Then you need to add to `~/.config/ranger/commands.py` line:
```Python3
from plugins.ranger_udisk_menu.mounter import mount
```
Thats all Thats all
# How to use # How to use

1
__init__.py Normal file
View File

@ -0,0 +1 @@
from .mounter import mount