Rizin
unix-like reverse engineering framework and cli tools
meson_dist_script Namespace Reference

Functions

def traverse_dir (d)
 

Variables

 dist_dir = os.path.abspath(os.environ["MESON_DIST_ROOT"])
 

Function Documentation

◆ traverse_dir()

def meson_dist_script.traverse_dir (   d)

Definition at line 13 of file meson_dist_script.py.

13 def traverse_dir(d):
14  for i in os.listdir(d):
15  # ignore . and ..
16  if i in (".", ".."):
17  continue
18 
19  fulli = os.path.abspath(os.path.join(d, i))
20  # avoid possible loops
21  if fulli == d:
22  continue
23 
24  if i == ".git":
25  shutil.rmtree(fulli)
26  elif os.path.isdir(fulli):
27  traverse_dir(fulli)
28 
29 

Variable Documentation

◆ dist_dir

meson_dist_script.dist_dir = os.path.abspath(os.environ["MESON_DIST_ROOT"])

Definition at line 31 of file meson_dist_script.py.