File: _path.py

package info (click to toggle)
python-renishawwire 0.1.16-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,056 kB
  • sloc: python: 1,368; makefile: 28
file content (13 lines) | stat: -rw-r--r-- 232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from pathlib import Path
import os

try:
    import pytest
except ImportError:
    # print("No pytest")
    pass

curdir = Path(__file__).parent
imgdir = curdir / "img"
if not imgdir.is_dir():
    os.makedirs(imgdir, exist_ok=True)