mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
cosmetic
This commit is contained in:
parent
c1315a3b39
commit
f39e370e2a
|
@ -62,12 +62,12 @@ except:
|
||||||
else:
|
else:
|
||||||
libfuse = "apt install libfuse\n modprobe fuse"
|
libfuse = "apt install libfuse\n modprobe fuse"
|
||||||
|
|
||||||
print(
|
m = """\033[33m
|
||||||
"\n could not import fuse; these may help:"
|
could not import fuse; these may help:
|
||||||
+ "\n python3 -m pip install --user fusepy\n "
|
{} -m pip install --user fusepy
|
||||||
+ libfuse
|
{}
|
||||||
+ "\n"
|
\033[0m"""
|
||||||
)
|
print(m.format(sys.executable, libfuse))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -74,12 +74,12 @@ except:
|
||||||
else:
|
else:
|
||||||
libfuse = "apt install libfuse3-3\n modprobe fuse"
|
libfuse = "apt install libfuse3-3\n modprobe fuse"
|
||||||
|
|
||||||
print(
|
m = """\033[33m
|
||||||
"\n could not import fuse; these may help:"
|
could not import fuse; these may help:
|
||||||
+ "\n python3 -m pip install --user fusepy\n "
|
{} -m pip install --user fusepy
|
||||||
+ libfuse
|
{}
|
||||||
+ "\n"
|
\033[0m"""
|
||||||
)
|
print(m.format(sys.executable, libfuse))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,19 @@ try:
|
||||||
if not hasattr(fuse, "__version__"):
|
if not hasattr(fuse, "__version__"):
|
||||||
raise Exception("your fuse-python is way old")
|
raise Exception("your fuse-python is way old")
|
||||||
except:
|
except:
|
||||||
print(
|
if WINDOWS:
|
||||||
"\n could not import fuse; these may help:\n python3 -m pip install --user fuse-python\n apt install libfuse\n modprobe fuse\n"
|
libfuse = "install https://github.com/billziss-gh/winfsp/releases/latest"
|
||||||
)
|
elif MACOS:
|
||||||
|
libfuse = "install https://osxfuse.github.io/"
|
||||||
|
else:
|
||||||
|
libfuse = "apt install libfuse\n modprobe fuse"
|
||||||
|
|
||||||
|
m = """\033[33m
|
||||||
|
could not import fuse; these may help:
|
||||||
|
{} -m pip install --user fuse-python
|
||||||
|
{}
|
||||||
|
\033[0m"""
|
||||||
|
print(m.format(sys.executable, libfuse))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue