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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -