New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't assume that python is registered with .py files #3798
Comments
Comment 1 by jteh on 2014-01-22 04:26 I went with the .py extension because that's how Python installs by default. Unfortunately, the Python installer doesn't provide an option to add Python to the search path. I'd rather not require people to manually change their search path. While it's not that difficult, it does require an understanding of how the variable works and the option isn't always easy to find. It seems we can use the reg tool to query the registry and the for command to capture its output. I don't know how to use reg yet, but we'll want something like this:
Sidenote: the Windows command interpreter is just so ugly! |
Comment 2 by driemer.riemer@... on 2014-01-22 06:12 |
Comment 3 by camlorn on 2014-01-22 16:55 |
Comment 4 by jteh (in reply to comment 3) on 2014-01-22 22:39
Not if you keep .pyw associated with pythonw, which is the default, but then we get back to people changing the defaults or having two versions of Python. :) This is one reason I actually prefer keeping the barrier of entry to running NVDA from source a bit higher. People complain about not being able to easily build/run from the source, but when we try to make it easier, we run into problems like this. Also, when you make it easier, some don't expect to need as much technical knowledge and so can't figure things out when they run into trouble. To be honest, I'm tempted to wontfix this, since you're using a non-default configuration. That way, we just say we only support the default config and anyone with enough knowledge to change that config also has enough knowledge to figure out how to fix it. Same goes for nvda.pyw. |
Comment 5 by jteh on 2014-01-22 22:41 |
Comment 6 by camlorn on 2014-01-22 23:56 |
Comment 7 by mdcurran on 2014-01-23 00:42 |
Comment 8 by jteh on 2014-01-23 00:43
|
Comment 9 by driemer.riemer@... on 2014-01-23 03:07 |
Comment 10 by camlorn on 2014-01-23 22:02 |
Comment 11 by jteh on 2014-01-23 22:53
I'm not really willing to spend much more time on this myself. We'll happily accept a patch, but it has to work on Windows XP through Windows 8.1, both 32 and 64 bit. |
Will the transition of NVDA from Python 2.x to 3.x affect this ticket in any way? |
As far as I understand, the change would affect Windows XP only. Right? |
cc: @derekriemer |
No, this isn't xp specific. |
I"m temped to close this. As we are in the process of moving to Python 3, it is safe to assume that a developer has the python launcher installed, so this issue is much less prevalent. |
Hi, especially given we’re using 3.7 and later. Thanks.
From: Leonard de Ruijter <notifications@github.com>
Sent: Friday, June 28, 2019 6:12 AM
To: nvaccess/nvda <nvda@noreply.github.com>
Cc: Joseph Lee <joseph.lee22590@gmail.com>; Mention <mention@noreply.github.com>
Subject: Re: [nvaccess/nvda] Don't assume that python is registered with .py files (#3798)
I"m temped to close this. As we are in the process of moving to Python 3, it is safe to assume that a developer has the python launcher installed, so this issue is much less prevalent.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#3798?email_source=notifications&email_token=AB4AXEG7YKDOL3OI63YUC7LP4YE2RA5CNFSM4DW53C3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY2BBLY#issuecomment-506728623> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AB4AXEG6DQDN7S6XOMEB3M3P4YE2RANCNFSM4DW53C3A> .
|
Reported by camlorn on 2014-01-22 03:25
Currently, the build system assumes that .py files are registered with python itself, rather than a text editor. For many of us who program with python, however, this is not true. A more valid assumption may potentially be that python can be found on the path; alternatively, python 2.7 registers itself in the registry. The latter solution may require an executable, and may consequently be unworkable.
Obviously, this is low priority: python scons.py arguments works just as well. I'd say that providing a note that python should be on the path would be sufficient-I'd think you'd have that anyway, if you're going to do any serious python development, and it may stop more wtf reactions when people can't figure out why their scons is suddenly not working.
If no one has any thoughts on this, I'll at least attach a one-line diff that changes the batch file; I assume this would, however, be superfluous
The text was updated successfully, but these errors were encountered: