Commit 61995c42 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Fix to setup.py documentation command

parent 5ca76f76
......@@ -62,8 +62,11 @@ class doc(Command):
if op.exists(destdir):
shutil.rmtree(destdir)
env = dict(os.environ)
ppath = [op.join(pkgutil.get_loader('fsl').filename, '..')]
env = dict(os.environ)
dirname = pkgutil.get_loader('fsl').get_filename()
dirname = op.dirname(dirname)
dirname = op.abspath(op.join(dirname, '..'))
ppath = [dirname]
env['PYTHONPATH'] = op.pathsep.join(ppath)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment