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("aaaa %s" % 123) > >>> tf.close() > > Where file aaa.txt will be created? Can I change default work space location? > How?
>>> from os import getcwd >>> getcwd() You'll see where/what python takes as cwd (current working directory) There are other things on windows like rt-click the python executable icon on your desktop and adjust the "open in..." to whatever you want But I dont know too much about this to say 😊 -- https://mail.python.org/mailman/listinfo/python-list