Re: Python console's workspace path

2017-09-05 Thread Terry Reedy
On 9/5/2017 10:26 AM, Andrej Viktorovich wrote: Hello, I run Python 3.6 console under windows 10. Where is default console directory? It depends on how and where you start it. I run script: tf = open ("aaa.txt", "w") tf.write(" %s" % 123) tf.close() Where file aaa.txt will be created?

Re: Python console's workspace path

2017-09-05 Thread eryk sun
On Tue, Sep 5, 2017 at 9:26 AM, Andrej Viktorovich wrote: > > I run Python 3.6 console under windows 10. Where is default console directory? The working directory for the console (i.e. conhost.exe) is irrelevant to Python. So I assume you mean the default working directory of the Python shell (i.

Re: Python console's workspace path

2017-09-05 Thread MRAB
On 2017-09-05 15:31, Stefan Ram wrote: Andrej Viktorovich writes: Hello, I run Python 3.6 console under windows 10. Where is default console directory? I run script: tf = open ("aaa.txt", "w") tf.write(" %s" % 123) tf.close() |>>> import os |>>> os.getcwd() Also, os.chdir(path) to chang

Re: Python console's workspace path

2017-09-05 Thread Rustom Mody
On Tuesday, September 5, 2017 at 7:58:23 PM UTC+5:30, Andrej Viktorovich wrote: > Hello, > > I run Python 3.6 console under windows 10. Where is default console directory? > > I run script: > >>> tf = open ("aaa.txt", "w") > >>> tf.write(" %s" % 123) > >>> tf.close() > > Where file aaa.txt w

Re: Python console's workspace path

2017-09-05 Thread Chris Angelico
On Wed, Sep 6, 2017 at 12:26 AM, Andrej Viktorovich wrote: > Hello, > > I run Python 3.6 console under windows 10. Where is default console directory? > > I run script: tf = open ("aaa.txt", "w") tf.write(" %s" % 123) tf.close() > > Where file aaa.txt will be created? Can I chan

Python console's workspace path

2017-09-05 Thread Andrej Viktorovich
Hello, I run Python 3.6 console under windows 10. Where is default console directory? I run script: >>> tf = open ("aaa.txt", "w") >>> tf.write(" %s" % 123) >>> tf.close() Where file aaa.txt will be created? Can I change default work space location? How? -- https://mail.python.org/mailman/