File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 102102# Add any paths that contain custom static files (such as style sheets) here,
103103# relative to this directory. They are copied after the builtin static files,
104104# so a file named "default.css" will overwrite the builtin "default.css".
105- html_static_path = ['_static' ]
105+ html_static_path = []
106106
107107
108108# -- Options for HTMLHelp output ------------------------------------------
Original file line number Diff line number Diff line change 44 1) How to add custom command aliases using the alias command
55 2) How to load an initialization script at startup
66"""
7-
7+ import os
88import cmd2
99
1010class AliasAndStartup (cmd2 .Cmd ):
1111 """ Example cmd2 application where we create commands that just print the arguments they are called with."""
1212
1313 def __init__ (self ):
14- super ().__init__ (startup_script = '.cmd2rc' )
14+ alias_script = os .path .join (os .path .dirname (__file__ ), '.cmd2rc' )
15+ super ().__init__ (startup_script = alias_script )
1516
1617
1718if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments