-
Notifications
You must be signed in to change notification settings - Fork 2
Module not working corectly #2
Description
Hello, Hope someone still monitors this place.
I am having problems getting this thing to run.
if i run it from python then import actmon; print actmon.__file__ ; actmon.get_idle_time() its fine. The output is `python
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import actmon; print actmon.file ; actmon.get_idle_time()
/usr/local/lib/python2.7/dist-packages/actmon.so
12
but as soon as i make a .py file with this in it#!/usr/bin/python
import actmon
print actmon.file
while True:
actmon.get_idle_time()`
it fails to display anything other than /usr/local/lib/python2.7/dist-packages/actmon.so in the terminal.
could someone please help me out thanks
Rich