Re: [Tutor] os.getcwd() confusion

2013-05-20 Thread Peter Otten
spangled spanner wrote: > G'day, > > I have a comprehension issue here! I have made two simple scripts: > > ## script1 > > import os > > print os.getcwd() > > - > ## script 2 > > import os > > f = open('test', 'wb') > f.write(os.getcwd()) > f.close() > > ___

[Tutor] os.getcwd() confusion

2013-05-19 Thread spangled spanner
G'day, I have a comprehension issue here! I have made two simple scripts: ## script1 import os print os.getcwd() - ## script 2 import os f = open('test', 'wb') f.write(os.getcwd()) f.close() _ Both scripts are in my home directory. Using bash I c