Get module paths in python

Sometimes we may get unexpected results when importing modules in Python (Probably because we are doing something wrong). pprint is a great tool for those cases, it allow us to check the real path of the module we are trying to import:

How to create SFTP access to a single folder on Linux

On this tutorial I will show how to create SFTP accounts limited to a single directory. The SFTP account can be assigned to a single user or to groups. I will cover both situations on this tutorial. The first thing we need is to install openssh: sudo apt-get install openssh-server Create the user For creating the user just run the …