<div dir="auto">My bad for not being explicit <div dir="auto"><br></div><div dir="auto">Gdb has a command called `source` </div><div dir="auto">It can be use to load python files </div><div dir="auto"><br></div><div dir="auto">If you create a test.py file as show in the above example and source it using the source command it doesn't work,</div><div dir="auto"><br></div><div dir="auto">Upon further inspection it crashes on Crlf \r\n and commas do not know why </div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 17 Aug 2021, 07:54 Ralf Habacker via Kde-finance-apps, <<a href="mailto:kde-finance-apps@kde.org" target="_blank" rel="noreferrer">kde-finance-apps@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 16.08.21 um 21:54 schrieb Da Viper via Kde-finance-apps:<br>
> I am currently using the Mingw from kmymoney, it's is version  10.2 <br>
> <br>
> If I try import a python file that has a new line it show syntax error:<br>
> invalid syntax<br>
> <br>
> For example<br>
> In the file <br>
> <br>
> ```<br>
> import sys<br>
> <br>
> print(sys.version)<br>
> <br>
> ```<br>
<br>
I just downloaded a fresh 32bit version of the mentioned gdb from<br>
<a href="https://kmymoney.org/snapshots.php#gdb-snapshot" rel="noreferrer noreferrer noreferrer" target="_blank">https://kmymoney.org/snapshots.php#gdb-snapshot</a> and unpackaged it.<br>
<br>
Then I created a file named gdbinit in a new subdirectory named<br>
etc\gdbinit  below the unpackaged directory and entered<br>
<br>
python<br>
import sys<br>
print(sys.version)<br>
<br>
<br>
After saving I started gdb and got the python version printed<br>
<br>
$ gdb -q<br>
2.6.9 (unknown, Jul 17 2021, 12:00:00)<br>
[GCC 9.2.0]<br>
(gdb)<br>
<br>
Changing the end of line of the file gdbinit from dos to unix gave the<br>
same results.<br>
<br>
Can you reproduce that ?<br>
<br>
Regards<br>
Ralf<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div>