django - Open file in Python -


my cwd ~/desktop/development/python/djcode/mysite, , want open file on desktop. syntax open files in different directory? (for example, if file in cwd use open('file'). thank you.

use relative paths? ../../../../file


Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -