Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (21 sloc) 0.749 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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")
Something went wrong with that request. Please try again.