Skip to content

The startup_script feature ignores spaces #457

@Den1al

Description

@Den1al

I tried to add a startup_script using the following code:

class MyCmd(Cmd):
    def __init__():
        Cmd.__init__(self, startup_script='/home/ubuntu/my folder/start.rc')
        ...

However, after debugging the code, it seems that cmd2 is considering that path as two separated elements: /home/ubuntu/my and `folder/start.rc', and then of course the parsing fails when trying to see if that's a real file, as I get the following error:

ERROR: /home/ubuntu/my does not exist or is not a file

Any help?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions