Re: IDLE Default Working Directory

2018-11-13 Thread Christman, Roger Graydon
On 13 Nov 2018, at 09:51, Bev in TX wrote: > On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: > > For me, open (command-O) opens 'Documents'. I presume it should be easy > enough to move into a 'py' subfolder. The whole point is for Idle -> File -> Open (or comm

Re: distribute python interpreter and dependencies

2018-11-13 Thread Pablo Lucena
After changing PATH variable; are you ensuring that the failed hosts are using the new PATH vs the old one? I've seen different behavior on different Windows versions for what it takes to "refresh" the env. System vs User defined env may also affect this, depending on the user invoking your program

Re: Peewee ORM questions

2018-11-13 Thread TUA
Brainfart has left the building print(model_to_dict(row, exclude = (row.created, row.updated))) should have been print(model_to_dict(row, exclude = (model.created, model.updated))) -- https://mail.python.org/mailman/listinfo/python-list

Peewee ORM questions

2018-11-13 Thread TUA
Hi all, couldn't find a group for Peewee, so here I am: Given a table structure of {'id': , 'username': , 'password': , 'created': , 'updated': } Using playhouse.shortcuts: def ListAll(model): for row in model.select(): print(model_to_dict(row, exclude = (row.created, row.

Re: passing value from Python3 script back to RewriteMap MapType prg in Apache24

2018-11-13 Thread Benedikt Kroll
Thank you for your responses! The solution I just found is the following: Even though the python script has the necessary execute permissions, the RewriteMap definition required that the python interpreter is included in the Apache config file: RewriteMap extrw "prg:/usr/bin/python3 /opt/extr

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
> On Nov 12, 2018, at 10:07 AM, Brian Oney wrote: > > On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote: >> I am not the OP and I’m on macOS — no shortcuts. How would one do the same >> thing on other platforms? >> Bev in TX > Hello there, > > I am not an IDLE user. You may try a startup sc

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
> On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: > > For me, open (command-O) opens 'Documents'. I presume it should be easy > enough to move into a 'py' subfolder. The whole point is for Idle -> File -> Open (or command-O) to automatically open to a specific folder. Bev in TX -- h

Re: Unable to get the gateway IP of wlan interface using python code

2018-11-13 Thread srinivasan
As am a beginner with the python Syntax, I was able to parse the gateway IP as below, Please do let me know if anyone forsee any issues in the below?: def get_gateway_ip(self): """ Get the Gateway IP address of the AP. :return: Gateway IP. """

Re: [egenix-info] Re: ANN: Python Meeting Düsseldorf - 07.11.2018

2018-11-13 Thread eGenix Team: M.-A. Lemburg
On 13.11.2018 13:54, Alex Kaye wrote: > Is anyone conducting  > Python webinars ? It would be helpful > to us beginners. It could become a worldwide > connector for Python users. This page should provide some good entry points: https://wiki.python.org/moin/BeginnersGuide You can also have a look

RE: Windows file associations fix

2018-11-13 Thread David Raymond
Thank you for the detailed info. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell only had "Edit with Pythonwin", and didn't have an "open" key. I added that in, along with one for the Python.NoConFile which was also missing "open", and it seems to be working happily now. Again, many th

Re: ANN: Python Meeting Düsseldorf - 07.11.2018

2018-11-13 Thread Alex Kaye
Is anyone conducting Python webinars ? It would be helpful to us beginners. It could become a worldwide connector for Python users. Alex On Tue, Nov 13, 2018 at 3:21 AM eGenix Team: M.-A. Lemburg wrote: > > [This announcement is in German since it targets a local user group > meeting in Düssel

ANN: Python Meeting Düsseldorf - 07.11.2018

2018-11-13 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG PyDDF Python Herbst Sprint 2018 in Düsseldorf

Re: Unable to get the gateway IP of wlan interface using python code

2018-11-13 Thread srinivasan
Hi Wildman, The below snippet seems to be fine, how can I specify to get the specific wlan0 interface gateway IP in the below code snippet? # #!/usr/bin/env python import socket import struct def get_gateway_ip(): try: with open("/proc/net/route", "r") as f: