Skip to content

Commit 7ec85ef

Browse files
committed
Renamed method to get template path.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 812c8c9 commit 7ec85ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino/arduino.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def delay(_ms):
8787

8888
# HELPERS
8989

90-
def get_template():
90+
def get_template_path():
9191
return '/'.join(__file__.split('/')[:-1]) + '/template.tpl'
9292

9393

@@ -103,7 +103,7 @@ def create_sketch(sketch_name = None, destination_path = '.', overwrite = False,
103103
except OSError:
104104
pass
105105

106-
template_path = get_template() if source_path is None else source_path
106+
template_path = get_template_path() if source_path is None else source_path
107107
template_sketch = open(template_path, 'r')
108108
new_sketch_path = f'{destination_path}/{sketch_name}.py'
109109

0 commit comments

Comments
 (0)