Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.749 kB
import Options, Utils
import os
def set_options(opt):
opt.add_option('--no-install-nautilus-extension',
action='store_true',
default=False,
help='Install Kupfer Nautilus Extension [Default:Install]')
def configure(conf):
if Options.options.no_install_nautilus_extension:
return
libdir = Utils.subst_vars("${LIBDIR}", conf.env)
if libdir.startswith(os.path.expanduser("~/")):
NAUTILUS_EXT_LIBDIR=os.path.expanduser("~/.nautilus/python-extensions/")
else:
NAUTILUS_EXT_LIBDIR=os.path.join(libdir, "nautilus", "extensions-2.0",
"python")
conf.env["NAUTILUS_EXT_LIBDIR"] = NAUTILUS_EXT_LIBDIR
def build(bld):
if not bld.env["NAUTILUS_EXT_LIBDIR"]:
return
bld.install_files("${NAUTILUS_EXT_LIBDIR}", "kupfer_provider.py")
Jump to Line
Something went wrong with that request. Please try again.