summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/pcb.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-11-10 21:39:03 +0100
committerjaseg <git@jaseg.de>2021-11-10 21:39:03 +0100
commitd21a2e67ff34d3f29e37a01f926b9e8f72003637 (patch)
tree8218f339a3336283c060aa5657a76a463b8e1982 /gerbonara/gerber/pcb.py
parent125eb821b9f5d4c58b17d43e318e9a6829120d03 (diff)
downloadgerbonara-d21a2e67ff34d3f29e37a01f926b9e8f72003637.tar.gz
gerbonara-d21a2e67ff34d3f29e37a01f926b9e8f72003637.tar.bz2
gerbonara-d21a2e67ff34d3f29e37a01f926b9e8f72003637.zip
WIP
Diffstat (limited to 'gerbonara/gerber/pcb.py')
-rw-r--r--gerbonara/gerber/pcb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gerbonara/gerber/pcb.py b/gerbonara/gerber/pcb.py
index f00c4b7..8b11cf5 100644
--- a/gerbonara/gerber/pcb.py
+++ b/gerbonara/gerber/pcb.py
@@ -20,7 +20,6 @@ import os
from .exceptions import ParseError
from .layers import PCBLayer, sort_layers, layer_signatures
from .common import read as gerber_read
-from .utils import listdir
class PCB(object):
@@ -36,7 +35,7 @@ class PCB(object):
raise TypeError('{} is not a directory.'.format(directory))
# Load gerber files
- for filename in listdir(directory, True, True):
+ for filename in os.listdir(directory):
try:
camfile = gerber_read(os.path.join(directory, filename))
layer = PCBLayer.from_cam(camfile)