`import user` can have undesirable side-effects #86

Closed
whiteinge opened this Issue Jul 15, 2011 · 0 comments

Comments

Projects
None yet
2 participants
@whiteinge

The use of import user in settings.py causes anything in a user's PYTHONSTARTUP script to execute. This can have unexpected side effects (for example, it drops me into the Python shell instead of launching cola).

I have often seen the home directory determined through os.path.expanduser('~') instead.

Another argument for not using import user to find the home directory is that it is going away in Python 3.

@davvid davvid closed this in 3bbc82d Jul 16, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment