Skip to content

Allow readline.__file__ to be missing #802

@jayvdb

Description

@jayvdb

See indygreg/PyOxidizer#69 for more info about why, but the tl;dr version is __file__ is an optional attribute and should not be relied upon.

Currently cmd2 fails under PyOxidizer with:

  File "cmd2", line 15, in <module>
  File "cmd2.cmd2", line 56, in <module>
  File "cmd2.rl_utils", line 120, in <module>
AttributeError: module 'readline' has no attribute '__file__'

If sys.oxidized is set, and readline is imported (and isnt libedit), then any symbols needed are in the binary, if that is helpful.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions