mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-07 13:41:21 +00:00
Import CommandNotFound system package on Debian
This commit is contained in:
parent
c196e2901c
commit
971ee69908
@ -1,8 +1,15 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from thefuck.specific.apt import apt_available
|
from thefuck.specific.apt import apt_available
|
||||||
from thefuck.utils import memoize, which
|
from thefuck.utils import memoize, which
|
||||||
from thefuck.shells import shell
|
from thefuck.shells import shell
|
||||||
|
|
||||||
|
# Debian does not have a python{,3}-commandnotfound package
|
||||||
|
# and the command-not-found package places the python module in another directory
|
||||||
|
# To import it correctly append the path to the sys.path
|
||||||
|
sys.path.append('/usr/share/command-not-found/')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from CommandNotFound import CommandNotFound
|
from CommandNotFound import CommandNotFound
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user