Re: Trouble getting to windows My Documents directory

2015-07-31 Thread random832
On Sat, Jul 11, 2015, at 03:28, Chris Warrick wrote: > That’s not necessarily “older”. > > Windows XP/7/8: My Documents > Windows Vista/8.1: Documents Mine's called Documents on 7 and 8. Is the system you got this information from a new install or an upgrade? (It may also depend on whether it's a

Re: Trouble getting to windows My Documents directory

2015-07-11 Thread Chris Warrick
On 11 July 2015 at 02:24, wrote: > The My Documents directory is not guaranteed to be named "Documents". On > older versions of windows it was "My Documents", and on foreign versions > of windows it is a name in their language. That’s not necessarily “older”. Windows XP/7/8: My Documents Window

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread random832
The My Documents directory is not guaranteed to be named "Documents". On older versions of windows it was "My Documents", and on foreign versions of windows it is a name in their language. The correct way to get the path of this folder is, for example (couldn't test since I'm on a mac right now)

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Tim Chase
On 2015-07-10 09:27, Mark Storkamp via Python-list wrote: > sourcedir = os.environ['HOME']+"/Documents/" First, I'd do a couple things here to accommodate various systems to make it cross-platform: sourcedir = os.path.join( os.path.expanduser('~'), "Documents" ) > os.chdir(sourcedi

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Rustom Mody
On Friday, July 10, 2015 at 11:18:57 PM UTC+5:30, Rustom Mody wrote: > On Friday, July 10, 2015 at 8:56:48 PM UTC+5:30, Mark Storkamp wrote: > > MRAB wrote: > > > > > On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: > > > > I'm just learning Python, and I've run into trouble trying to c

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Rustom Mody
On Friday, July 10, 2015 at 8:56:48 PM UTC+5:30, Mark Storkamp wrote: > MRAB wrote: > > > On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: > > > I'm just learning Python, and I've run into trouble trying to change > > > directory to the windows My Documents directory. There's likely a b

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Mark Storkamp via Python-list
In article , MRAB wrote: > On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: > > I'm just learning Python, and I've run into trouble trying to change > > directory to the windows My Documents directory. There's likely a better > > way to do this, but this is what I've tried so far: > > >

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread MRAB
On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better way to do this, but this is what I've tried so far:

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Laura Creighton
Maybe HOMEPATH is what windows calls it? http://libertyboy.free.fr/computing/reference/envariables/ (but maybe this is only for windows XP. I don't have a windows system, so I cannot test this.) Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Mark Lawrence
On 10/07/2015 15:27, Mark Storkamp via Python-list wrote: I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better way to do this, but this is what I've tried so far:

Trouble getting to windows My Documents directory

2015-07-10 Thread Mark Storkamp via Python-list
I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better way to do this, but this is what I've tried so far: - from tkinter import Tk from tkinter.filedialog import as