mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
15 lines
307 B
Python
15 lines
307 B
Python
from contextlib import contextmanager
|
|
import shutil
|
|
import tempfile
|
|
|
|
try:
|
|
from tempfile import TemporaryDirectory
|
|
except ImportError:
|
|
@contextmanager
|
|
def TemporaryDirectory():
|
|
name = tempfile.mkdtemp()
|
|
try:
|
|
yield name
|
|
finally:
|
|
shutil.rmtree(name)
|