ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux server378.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Current Path : /proc/thread-self/root/opt/hc_python/lib/python3.12/site-packages/inotify/ |
| Current File : //proc/thread-self/root/opt/hc_python/lib/python3.12/site-packages/inotify/test_support.py |
import os
import logging
import shutil
import tempfile
import contextlib
_LOGGER = logging.getLogger(__name__)
@contextlib.contextmanager
def temp_path():
path = tempfile.mkdtemp()
original_wd = os.getcwd()
os.chdir(path)
try:
yield path
finally:
os.chdir(original_wd)
if os.path.exists(path) is True:
shutil.rmtree(path)