# ParkerK/selfrestraint forked from SelfControlApp/selfcontrol

Are certain websites a distraction? SelfRestraint is a cross platform application which blocks access to websites for a predetermined period of time. It can not be undone by the app or by a restart – you must wait for the timer to run out.
Python
This branch is 59 commits ahead, 218 commits behind SelfControlApp:master.
ParkerK Merge pull request #9 from dflock/master
I made it work on Linux & Tidied up the code/comments a bit
Latest commit a7d8213 Jul 25, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
CHANGELOG.markdown Aug 14, 2012
SelfControlIcon.icns Sep 26, 2011
SelfRestraint Jan 17, 2012
SelfRestraint.exe Aug 14, 2012
SelfRestraint.icns Jan 15, 2012
SelfRestraint.ico Jan 15, 2012
SelfRestraint.py Feb 6, 2013
setup.py Jan 15, 2012
version Feb 6, 2013

# SelfRestraint

SelfRestraint is a cross platform version of Steve Lambert's SelfControl, written in Python. It allows you to block distracting sites for a set amount of time, so you can use your computer and access the internet without having to worry about distracting sites.

## Credits

SelfRestraint was developed by Parker Kuivila The UI and features were inspired by Steve Lambert

SelfRestraint is Free Software under the GPL. You are free to share, modify, and add to the code as you wish.

## Installation

If you simply want to use the program, just run the included .exe (Windows) or .app (Mac OS X) (Coming Soon!).

## Building

If you want to help with the project and build it yourself here's how:

2. For Windows:

• In the PyInstaller directory run python pyinstaller.py -F -w --icon=<Path_To_Selfrestraint.ico> \path\to\SelfRestraint.py
3. If you're on OS X:

• Navigate to SelfRestraint.app/Contents/Resources and open boot.py
• Add sys.path = [os.path.join(os.environ['RESOURCEPATH'], 'lib', 'python2.7', 'lib-dynload')] + sys.path above sys.frozen = 'macosx_app'

## Known Bugs

• Mac version requires password, messy workaround
• Does not work on OS X
• Quitting means you have to re run the app, and let is finish the countdown
• Sometimes the timer doesn't end and the block lasts forever (until hosts file is changed)