diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-15 00:36:01 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-15 00:36:01 -0400 |
commit | e4983ab320a63f0c43085360133a1bcfa0d67fdd (patch) | |
tree | f9e04c293d68fb3ff66687a361fedbcf61f52d8a /cmd2/cmd2.py | |
parent | 710a9e23f0070e7548ad3405c73cf4a8b92610a6 (diff) | |
download | cmd2-git-e4983ab320a63f0c43085360133a1bcfa0d67fdd.tar.gz |
Fixing unit tests
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 667e221d..93100c5d 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3727,6 +3727,11 @@ class Cmd(cmd.Cmd): Run commands in script file that is encoded as either ASCII or UTF-8 text :return: True if running of commands should stop """ + if args.__statement__.command == "_relative_load": + self.perror("_relative_load has been renamed and will be removed in the next release, " + "please use _relative_run_script instead\n", + traceback_war=False, err_color=Fore.LIGHTYELLOW_EX) + file_path = args.file_path # NOTE: Relative path is an absolute path, it is just relative to the current script directory relative_path = os.path.join(self._current_script_dir or '', file_path) |