timothycrosley / concentration

Stay focused on work when you want, and goof off when you don't.
MIT License
327 stars 24 forks source link

not working in windows #10

Closed pavanyogi closed 3 years ago

pavanyogi commented 6 years ago

C:\Users\Pavan Yogi>concentration improve Traceback (most recent call last): File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main "main", mod_spec) File "c:\python34\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python34\Scripts\concentration.exe__main.py", line 9, in File "c:\python34\lib\site-packages\hug\api.py", line 391, in call self.commands.get(command)() File "c:\python34\lib\site-packages\hug\interface.py", line 485, in call result = self.interface(**pass_to_function) File "c:\python34\lib\site-packages\hug\interface.py", line 99, in call return hug_internal_self._function(*args, **kwargs) File "c:\python34\lib\site-packages\concentration\run.py", line 28, in improve with open(settings.HOSTS_FILE, "r+") as hosts_file: PermissionError: [Errno 13] Permission denied: '/Windows/System32/drivers/etc/hosts'

GreatBahram commented 5 years ago

This is because you need to run that command as admin!