File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
import platform
2
2
3
- from pygame .docs .serve import main as serve
4
- from pygame .docs .static import main as static
3
+ # use relative import here and not absolute, so that `python -m docs` works at
4
+ # development time
5
+ from .serve import main as serve
6
+ from .static import main as static
5
7
6
8
7
9
def main ():
Original file line number Diff line number Diff line change 4
4
import webbrowser
5
5
from http .server import ThreadingHTTPServer , SimpleHTTPRequestHandler
6
6
7
- from pygame .docs import PKG_DIR , has_local_docs
7
+ # use relative import here and not absolute, so that `python -m docs` works at
8
+ # development time
9
+ from . import PKG_DIR , has_local_docs
8
10
9
11
10
12
class DocsHandler (SimpleHTTPRequestHandler ):
Original file line number Diff line number Diff line change 1
1
import webbrowser
2
2
3
- from pygame .docs import PKG_DIR
3
+ # use relative import here and not absolute, so that `python -m docs` works at
4
+ # development time
5
+ from . import PKG_DIR
4
6
5
7
6
8
def open_docs ():
You can’t perform that action at this time.
0 commit comments