Discussion:
[Bug python/23181] New: Wrong __file__ inside python file
boldin.pavel at gmail dot com
2018-05-14 22:26:02 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23181

Bug ID: 23181
Summary: Wrong __file__ inside python file
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: boldin.pavel at gmail dot com
Target Milestone: ---

Created attachment 11016
--> https://sourceware.org/bugzilla/attachment.cgi?id=11016&action=edit
fix tilde in python __file__

Code for `python_run_simple_file` in non-win32 never expands tilde in the
filename.

This filename is passed to the python script as `__file__` and must be an
absolute path.

Patch attached.

Both 8.1 and master have this bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...