Re: [Pyzo] Strange behavior in console history

2016-10-10 Thread Dietrich Pescoller
Ok, was thinking there is just a simple line/command to type... Anyway, do you thing this is something which will be fixed soon? So should we just wait and be patient, or should we try to find a way to leave with this issue? Thanks, Dietrich Il giorno lunedì 10 ottobre 2016 11:23:00 UTC+2,

Re: [Pyzo] IEP and __file__

2016-10-10 Thread Dietrich Pescoller
In your suggestion the only drawback is that 'foo.py' needs to be set manually, This would work and is acceptable but of course not optimal. I can understand you point to not add another way to run a file. My question/thought since in the current file execution (command) the __file__ is not set

RE: [Pyzo] IEP and __file__

2016-10-10 Thread almar.klein
I am hesitant to add yet another way to run a file. Since the current directory is changed now, would it work for you to put this at the top of your file: __file__ = os.path.join(os.cwd(), ‘foo.py’) From: Dietrich Pescoller Sent: 10 October 2016 09:20 To: Pyzo Cc: dit...@gmail.com;

Re: [Pyzo] IEP and __file__

2016-10-10 Thread Dietrich Pescoller
Yes, but also in this case if I run the file as a script than the console is retarted and we loose all previous work. Effectively we are in a very same situation as we had with the current directory setting. Perhaps could it be the definitive solution to have the option "running as a script"