diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2020-07-20 16:41:37 -0700 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2020-07-20 16:41:37 -0700 |
commit | e2efdde6b718098f0d35763bb094833a766af479 (patch) | |
tree | 39cfb724c54e86918241bf28d7cd65baf5e20126 /demos/python | |
parent | 217b8d292a1098ee56ab52b57bce3e32920b55d4 (diff) | |
download | ghostpdl-e2efdde6b718098f0d35763bb094833a766af479.tar.gz |
Fix two minor issues in python API demo
Diffstat (limited to 'demos/python')
-rwxr-xr-x | demos/python/gsapi.py | 2 | ||||
-rw-r--r-- | demos/python/jlib.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/demos/python/gsapi.py b/demos/python/gsapi.py index a2d67dbd7..364b222fd 100755 --- a/demos/python/gsapi.py +++ b/demos/python/gsapi.py @@ -312,7 +312,7 @@ def gsapi_activate_path_control(instance, enable): def gsapi_is_path_control_active(instance): - e = gsapi.gsapi_is_path_control_active(instance) + e = _libgs.gsapi_is_path_control_active(instance) return e diff --git a/demos/python/jlib.py b/demos/python/jlib.py index 54ee0a222..20506c38d 100644 --- a/demos/python/jlib.py +++ b/demos/python/jlib.py @@ -9,6 +9,7 @@ import subprocess import sys import time import traceback +import threading def place( frame_record): @@ -21,7 +22,7 @@ def place( frame_record): function = frame_record.function ret = os.path.split( filename)[1] + ':' + str( line) + ':' + function + ':' if 0: - tid = str( threading.currentThread()) + tid = str(threading.currentThread()) ret = '[' + tid + '] ' + ret return ret |