11#!/usr/bin/env python3
2- import inspect
32import os
43
54# get version from trimesh without installing
65import trimesh
76
7+ _cwd = os .path .abspath (os .path .expanduser (os .path .dirname (__file__ )))
88
9- def abspath (rel ):
9+
10+ def abspath (rel : str ) -> str :
1011 """
1112 Take paths relative to the current file and
1213 convert them to absolute paths.
@@ -21,10 +22,8 @@ def abspath(rel):
2122 abspath : str
2223 Absolute path, IE '/home/user/stuff'
2324 """
24-
2525 # current working directory
26- cwd = os .path .dirname (os .path .abspath (inspect .getfile (inspect .currentframe ())))
27- return os .path .abspath (os .path .join (cwd , rel ))
26+ return os .path .abspath (os .path .join (_cwd , rel ))
2827
2928
3029extensions = [
@@ -66,7 +65,7 @@ def abspath(rel):
6665# List of patterns, relative to source directory, that match files and
6766# directories to ignore when looking for source files.
6867# This patterns also effect to html_static_path and html_extra_path
69- exclude_patterns = ["_build " , "Thumbs.db" , ".DS_Store" ]
68+ exclude_patterns = ["built " , "Thumbs.db" , ".DS_Store" ]
7069
7170# The name of the Pygments (syntax highlighting) style to use.
7271pygments_style = "sphinx"
@@ -85,8 +84,8 @@ def abspath(rel):
8584# Add any paths that contain custom static files (such as style sheets) here,
8685# relative to this directory. They are copied after the builtin static files,
8786# so a file named "default.css" will overwrite the builtin "default.css".
88- html_static_path = ["static" ]
89- html_logo = "images/trimesh-logo.png"
87+ html_static_path = [abspath ( "static" ) ]
88+ html_logo = "static/ images/trimesh-logo.png"
9089
9190# custom css
9291html_css_files = ["custom.css" ]
0 commit comments