Sourcing python files in Mingw

Da Viper yerimyah1 at gmail.com
Tue Aug 17 13:51:22 BST 2021


My bad for not being explicit

Gdb has a command called `source`
It can be use to load python files

If you create a test.py file as show in the above example and source it
using the source command it doesn't work,

Upon further inspection it crashes on Crlf \r\n and commas do not know why



On Tue, 17 Aug 2021, 07:54 Ralf Habacker via Kde-finance-apps, <
kde-finance-apps at kde.org> wrote:

> Am 16.08.21 um 21:54 schrieb Da Viper via Kde-finance-apps:
> > I am currently using the Mingw from kmymoney, it's is version  10.2
> >
> > If I try import a python file that has a new line it show syntax error:
> > invalid syntax
> >
> > For example
> > In the file
> >
> > ```
> > import sys
> >
> > print(sys.version)
> >
> > ```
>
> I just downloaded a fresh 32bit version of the mentioned gdb from
> https://kmymoney.org/snapshots.php#gdb-snapshot and unpackaged it.
>
> Then I created a file named gdbinit in a new subdirectory named
> etc\gdbinit  below the unpackaged directory and entered
>
> python
> import sys
> print(sys.version)
>
>
> After saving I started gdb and got the python version printed
>
> $ gdb -q
> 2.6.9 (unknown, Jul 17 2021, 12:00:00)
> [GCC 9.2.0]
> (gdb)
>
> Changing the end of line of the file gdbinit from dos to unix gave the
> same results.
>
> Can you reproduce that ?
>
> Regards
> Ralf
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-finance-apps/attachments/20210817/3f072f8a/attachment.htm>


More information about the Kde-finance-apps mailing list