Skip to content

Commit c3364ef

Browse files
committed
Fixed directory formatting to work on windows
1 parent fddbd82 commit c3364ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

skdaccess/astro/kepler/data_fetcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def output(self):
7474
data_location = data_util.getDataLocation('kepler')
7575

7676
if data_location == None:
77-
data_location = os.path.expanduser('~') + '/.skdaccess/kepler/'
77+
data_location = os.path.join(os.path.expanduser('~'), '.skdaccess', 'kepler')
7878
os.makedirs(data_location, exist_ok=True)
79-
data_location += 'kepler_data.h5'
79+
data_location = os.path.join(data_location, 'kepler_data.h5')
8080
data_util.setDataLocation('kepler', data_location)
8181

8282
store = pd.HDFStore(data_location)

0 commit comments

Comments
 (0)