summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/conf.py2
-rwxr-xr-xexamples/alias_startup.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 13a2dba2..2c75e14e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -102,7 +102,7 @@ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
+html_static_path = []
# -- Options for HTMLHelp output ------------------------------------------
diff --git a/examples/alias_startup.py b/examples/alias_startup.py
index 4a061e87..4ae91661 100755
--- a/examples/alias_startup.py
+++ b/examples/alias_startup.py
@@ -4,14 +4,15 @@
1) How to add custom command aliases using the alias command
2) How to load an initialization script at startup
"""
-
+import os
import cmd2
class AliasAndStartup(cmd2.Cmd):
""" Example cmd2 application where we create commands that just print the arguments they are called with."""
def __init__(self):
- super().__init__(startup_script='.cmd2rc')
+ alias_script = os.path.join(os.path.dirname(__file__), '.cmd2rc')
+ super().__init__(startup_script=alias_script)
if __name__ == '__main__':