Normally when I had a module I want to use for a specific project I just put the module in the project folder and imported it from the script, where it was needed. But I created some modules, which are helpful in total, so I want them to be accessible from everywhere. (like modules of the standard library of python)
Example Module (pcinput.py):
def getFloat(prompt='Enter your Float: '):
while True:
try:
num = float(input(prompt))
except ValueError:
print('Float expected -- please try again')
continue
return num
Properties:
OS: Ubuntu 16.04
Python Version: 3.5.2