Skip to content

Commit e60cfdf

Browse files
committed
fixes #1 - create datapath when it doesn't exist
1 parent 1505420 commit e60cfdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

certabo/certabo.py

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import subprocess
1414
import threading
1515
import appdirs
16+
import pathlib
1617

1718
import berserk
1819

@@ -25,6 +26,7 @@
2526

2627
CERTABO_DATA_PATH = appdirs.user_data_dir("GUI", "Certabo")
2728
CALIBRATION_DATA = os.path.join(CERTABO_DATA_PATH,"calibration.bin")
29+
os.makedirs(CERTABO_DATA_PATH, exist_ok=True)
2830

2931
class Certabo():
3032
def __init__(self, port='auto', calibrate=False, **kwargs):

0 commit comments

Comments
 (0)