[issue1763] Winpath module - easy access to Windows directories like My Documents

2013-06-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also PyXDG (http://freedesktop.org/wiki/Software/pyxdg/) and winpaths 
(http://ginstrom.com/code/winpaths.html).

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2013-06-24 Thread Christian Heimes

Christian Heimes added the comment:

Oh my, this patch is rather ancient. Is this feature still of interest? I'm 
happy to port it from 2.6 to 3.4.

--
status: languishing -> open
versions: +Python 3.4 -Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-09-23 Thread R. David Murray

Changes by R. David Murray :


--
status: closed -> languishing

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-09-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

No reply to msg110596.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-08-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 2.7, Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Christian: have you any interest in keeping this open or can it be closed, 
gien that the last comment was 2 1/2 years ago?

--
nosy: +BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2009-04-27 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> patch review
versions: +Python 2.7, Python 3.1 -Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-02-11 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

> I'm using win2000, and latest free compiler doesn't support it :-(
I hope it does. r60696 is only about supporting win2000 when compiled
with vs9.

Building with vc6 should be corrected. I filed issue2065.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-02-09 Thread Hirokazu Yamamoto

Hirokazu Yamamoto added the comment:

Sorry for interruption. I'm a little doubtful this is really needed.
We can get "My Documents" path by following 5 lines of code.

import ctypes

dll = ctypes.windll.shell32
buf = ctypes.create_string_buffer(300)
dll.SHGetSpecialFolderPathA(None, buf, 0x0005, False)
print buf.value

And if this patch goes in, I'm using clipboard in my several python
scripts, is it also possible to add clipboard support?
(I implemented ocean/clipboard.py under PYTHONPATH and now using it
personally)

# And, well, r60696 blocks me from building python on VC6, if this change
# (WINVER = 0x500) is required for this issue only, I'm happy if this
# would be reverted but... I cannot claim it loudly. I'm using win2000,
# and latest free compiler doesn't support it :-(

--
nosy: +ocean-city

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-18 Thread Christian Heimes

Christian Heimes added the comment:

Mark Hammond wrote:
> I'm not sure why the approach of "load-em-all" is being taken. 
> Interestingly, SHGetFolderPathW is listed as deprecated, so I doubt that
> list will grow too much, but the implementation as specified prevents
> the user from using other facilities available via the API (ie, what if
> they *do* want it verified?  What if they want to specify
> CSIDL_FLAG_CREATE?)
> 
> That said though, I don't object to the patch as it stands, and agree it
> will meet the requirements of the majority of people who need a "known
> path" on Windows.

Indeed, the patch targets the most basic requirements. I wanted to
implement a simple and straight solution without implementing a complex
API or adding about 30 new constants to a module. Users with extend
needs should use your pywin32 package. I don't feel like rewriting your
package here. ;)

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-17 Thread Mark Hammond

Mark Hammond added the comment:

I'm not sure why the approach of "load-em-all" is being taken. 
Interestingly, SHGetFolderPathW is listed as deprecated, so I doubt that
list will grow too much, but the implementation as specified prevents
the user from using other facilities available via the API (ie, what if
they *do* want it verified?  What if they want to specify
CSIDL_FLAG_CREATE?)

That said though, I don't object to the patch as it stands, and agree it
will meet the requirements of the majority of people who need a "known
path" on Windows.

--
nosy: +mhammond

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-09 Thread Martin v. Löwis

Martin v. Löwis added the comment:

> OK. We should also remove references to older versions on the website:
> http://www.python.org/download/releases/2.5.1/ and the various READMEs.

No. Python 2.5.1 *does* support Windows 95 (I have myself tested that).
Only 2.6 will drop support for 9x.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-09 Thread Christian Heimes

Christian Heimes added the comment:

Amaury Forgeot d'Arc wrote:
> For testing older platforms, we can still use virtual machines. I think
> this is how Christian develops on Windows XP.

Correct, I'm using a VMWare installation of Windows XP SP2 German and
DesktopBSD (FreeBSD variant) to test Python on Windows and BSD. Several
of the build bots seem to use a VMWare installation, too.

Christian

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-09 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

OK. We should also remove references to older versions on the website:
http://www.python.org/download/releases/2.5.1/ and the various READMEs.

For testing older platforms, we can still use virtual machines. I think
this is how Christian develops on Windows XP.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-09 Thread Martin v. Löwis

Martin v. Löwis added the comment:

It was never explicitly discussed, however, I always assumed that NT4
support is not necessary anymore.

I would like to pose a policy that Python does not need to support
Windows releases which have left Microsoft's "extended support". For NT
4 WS, this was on 30.6.2004. For Windows 2000 Pro, this will be on
13.7.2010. Of course, *testing* the releases on Windows 2000 will become
difficult - I don't have access to Windows 2000 installations anymore.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-09 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

> It uses SHGetFolderPathW which is compatible with Windows 2000.

Is Python supposed to still work on Windows NT 4?

http://svn.python.org/projects/python/trunk/README says that support
will be droppen in 2.6 for Win9x and WinME, but says nothing about NT4.

OTOH, the msdn library site removed many references to NT4 (see the doc
for CreateFile, for example). It could be wise to say that python 2.6 is
supported only on Windows 2000 and up.

--
nosy: +amaury.forgeotdarc

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-08 Thread Christian Heimes

Christian Heimes added the comment:

Here is a new patch which adds os.path.getshellfolders(). It uses
SHGetFolderPathW which is compatible with Windows 2000.

I've implemented the API because several of my project need the path to
my documents. I've a personal interested in the specific feature. It may
also be required for a new, user specific site-package directory. The
feature is currently being discussed on the python-dev list.

Added file: http://bugs.python.org/file9111/trunk_os_getshellfolders.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-08 Thread Martin v. Löwis

Martin v. Löwis added the comment:

I believe Microsoft advises against looking at the registry to find
these things, and advocates the use of SHGetFolder instead:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/apcompat/apcompat/use_the_application_programming_interface_to_locate_special_folders.asp

As for naming things: I guess an object ShellFolders in ntpath might
work fine, with (computed) attributes Desktop, Documents, etc (according
to the FOLDERID_ symbolic constants of the API).

OTOH, this is entirely ad-hoc, as tons of other Windows API is *not*
directly exposed to Python, so it's questionable why this one
specifically deserves being supported.

The patch has no documentation.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-08 Thread Christian Heimes

Christian Heimes added the comment:

I'm not very good in naming things. I'm open to suggestions :)

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-08 Thread Raghuram Devarakonda

Raghuram Devarakonda added the comment:

The current 'path' modules such as posixpath and ntpath have functions
that operate on a file path. But I see this module more as a way of
getting information related to one's profile. So the name 'winpath' may
not be a good choice.

--
nosy: +draghuram

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-08 Thread Christian Heimes

New submission from Christian Heimes:

The new module "winpath" gives easy access to Windows shell folders like
my documents, my files, application data etc.

--
components: Library (Lib), Windows
files: trunk_winpath.patch
keywords: patch
messages: 59547
nosy: tiran
priority: normal
severity: normal
status: open
title: Winpath module - easy access to Windows directories like My Documents
type: rfe
versions: Python 2.6
Added file: http://bugs.python.org/file9106/trunk_winpath.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com