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

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -