Skip to content

Commit fb6f8ae

Browse files
committed
updated timeout.py
1 parent d610be7 commit fb6f8ae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

timeout.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@
2828
import subprocess
2929
import sys
3030
import time
31-
import psutil
32-
libdir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'pylib'))
31+
srcdir = os.path.abspath(os.path.dirname(__file__))
32+
libdir = os.path.join(srcdir, 'pylib')
3333
sys.path.append(libdir)
3434
try:
3535
# pylint: disable=wrong-import-position
36+
import psutil
3637
from harisekhon import CLI
3738
from harisekhon.utils import plural, prog, qquit
3839
except ImportError as _:
@@ -42,7 +43,7 @@
4243
sys.exit(4)
4344

4445
__author__ = 'Hari Sekhon'
45-
__version__ = '0.2'
46+
__version__ = '0.2.1'
4647

4748

4849
# Timeout behaviour itself is handled by my std base class CLI

0 commit comments

Comments
 (0)