
commit f5950d01e1578a532c03da55165030f8c3ba3919 Author: Beck <csybeck@gmail.com> Date: Tue Mar 27 01:11:30 2012 -0500 fixed system module undefined in windows --- stem/util/proc.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/stem/util/proc.py b/stem/util/proc.py index cbfc3c5..0e9f5ed 100644 --- a/stem/util/proc.py +++ b/stem/util/proc.py @@ -33,7 +33,10 @@ import stem.util.log as log # cached system values IS_PROC_AVAILABLE, SYS_START_TIME, SYS_PHYSICAL_MEMORY = None, None, None -CLOCK_TICKS = os.sysconf(os.sysconf_names["SC_CLK_TCK"]) +try: + CLOCK_TICKS = os.sysconf(os.sysconf_names["SC_CLK_TCK"]) +except AttributeError: + pass Stat = stem.util.enum.Enum(("COMMAND", "command"), ("CPU_UTIME", "utime"), ("CPU_STIME", "stime"), ("START_TIME", "start time"))