Profile
Achievement
jarnaldich's Recent Python Snippets
- All /
« Prev 1 Next »
Making a python process exit with error code 1 after 30 seconds. Exit is unclean (no garbage is collected, no flushed buffers, etc...).
0
945
posted 11 years ago by jarnaldich
Sometimes (ex. django templates section at setting.py), a function expects an absolute path, but it's more practical when developing to refer it to the current file position in our code base. The rel function does exactly that.
0
1026
posted 12 years ago by jarnaldich