doc/conf.py
changeset 11057 0b59724cb3f2
parent 10496 e95b559a06a2
child 11631 faf279e33298
equal deleted inserted replaced
11052:058bb3dc685f 11057:0b59724cb3f2
    34 from os import path as osp
    34 from os import path as osp
    35 
    35 
    36 path = __file__
    36 path = __file__
    37 path = osp.dirname(path)  # ./doc
    37 path = osp.dirname(path)  # ./doc
    38 path = osp.dirname(path)  # ./
    38 path = osp.dirname(path)  # ./
    39 path = osp.join(path, '__pkginfo__.py')  # ./__pkginfo__.py
    39 path = osp.join(path, 'cubicweb', '__pkginfo__.py')  # ./__pkginfo__.py
    40 cw = {}
    40 cw = {}
    41 execfile(path, {}, cw)
    41 with open(path) as f:
       
    42     exec(f.read(), cw)
    42 
    43 
    43 # If your extensions are in another directory, add it here. If the directory
    44 # If your extensions are in another directory, add it here. If the directory
    44 # is relative to the documentation root, use os.path.abspath to make it
    45 # is relative to the documentation root, use os.path.abspath to make it
    45 # absolute, like shown here.
    46 # absolute, like shown here.
    46 #sys.path.append(os.path.abspath('some/directory'))
    47 #sys.path.append(os.path.abspath('some/directory'))