On Sun, Dec 12, 2010 at 2:32 PM, David Hutto <smokefl...@gmail.com> wrote:
> On Sun, Dec 12, 2010 at 2:27 PM, David Hutto <smokefl...@gmail.com> wrote:
>> You need a file that sets the initial time used for the app(the time
>> on the individuals computer), and a function that checks that initial
>> start up file for the current time and the original usage time of
>> first start up.
>>
>
> pseudocode:
>
> def initialfile():
> f = open('/initialfile','w')
> if f:
> pass
> if not f:
> time = os/sys.time
> f.write(time)
>
> def check original:
> if f found:
> check f.time
> currenttime
if f.time > setlimit of time:
sys.exit()
>
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor