Home Download Buy Blog Forum Support

Get (current) default path

Get (current) default path

Postby agibsonsw on Fri May 04, 2012 5:10 pm

Hello again. If I use

Code: Select all
fname_dict = open(fname + 'cmts', 'wb')

ST will save the file in either same folder as the currently open file, or the current projects' folder, or 'Program Files\Sublime Text 2'. How can I check where it is being saved to?
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: Get (current) default path

Postby agibsonsw on Fri May 04, 2012 6:18 pm

Answering my own question ;)

Code: Select all
os.getcwd(), os.path.sep
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 20 guests