On Thu, 04 Feb 2010 00:39:01 +, David Monaghan
wrote:
>I have a small program which reads files from the directory in which it
>resides. It's written in Python 3 and when run through IDLE or PythonWin
>works fine. If I double-click the file, it works fine in Python 2.6, but in
>3 it fails bec
Gabriel Genellina wrote:
Sorry, I should have removed that line. This is just my setup; a normal
Python install doesn't create that registry entry. It allows Desktop
Search (or Windows Search, or whatever it is called nowadays; the F3
key) to search inside .py files (default behavior is to jus
En Thu, 04 Feb 2010 17:50:29 -0300, Gib Bogle
escribió:
Gabriel Genellina wrote:
Also, from the command line, execute:
D:\temp>reg query HKCR\.py
! REG.EXE VERSION 3.0
HKEY_CLASSES_ROOT\.py
REG_SZ Python.File
Content TypeREG_SZ text/plain
HKEY_CLASSES_ROOT\.py\
Gabriel Genellina wrote:
But the associated program might change the current directory - that's
not the case with the default associations created by the Python
installer, but one should verify this.
To the OP: please create this small test script
import os
print("curdir=", os.getcwd())
print(
En Thu, 04 Feb 2010 02:46:45 -0300, Alf P. Steinbach
escribió:
Oh sorry, now I see what you mean. I read it too literally. You mean
that at script startup __file__ is a valid relative or absolute path to
the script.
But anyways, Windows Explorer doesn't change the current directory to
* Alf P. Steinbach:
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 11:18 PM, Alf P. Steinbach wrote:
* Benjamin Kaplan:
The easiest way to solve this permanently, by the way, is to not use
relative paths. All it takes is one script to call os.chdir and the
script breaks. You can use __file__ and t
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 11:18 PM, Alf P. Steinbach wrote:
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 9:56 PM, Alf P. Steinbach wrote:
* David Monaghan:
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and when run thr
On Wed, Feb 3, 2010 at 11:18 PM, Alf P. Steinbach wrote:
> * Benjamin Kaplan:
>>
>> On Wed, Feb 3, 2010 at 9:56 PM, Alf P. Steinbach wrote:
>>>
>>> * David Monaghan:
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and when r
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 9:56 PM, Alf P. Steinbach wrote:
* David Monaghan:
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and when run through IDLE or PythonWin
works fine. If I double-click the file, it works fine in
On Wed, Feb 3, 2010 at 9:56 PM, Alf P. Steinbach wrote:
> * David Monaghan:
>>
>> I have a small program which reads files from the directory in which it
>> resides. It's written in Python 3 and when run through IDLE or PythonWin
>> works fine. If I double-click the file, it works fine in Python 2
* David Monaghan:
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and when run through IDLE or PythonWin
works fine. If I double-click the file, it works fine in Python 2.6, but in
3 it fails because it looks for the files to load in the P
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and when run through IDLE or PythonWin
works fine. If I double-click the file, it works fine in Python 2.6, but in
3 it fails because it looks for the files to load in the Python31 folder,
not
12 matches
Mail list logo