Skip to content
This repository was archived by the owner on Nov 13, 2019. It is now read-only.

Commit 5f3f34d

Browse files
committed
REFACT: change output dir
1 parent e34faec commit 5f3f34d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

NUAAiCal/GenerateICS.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ def create_ics(lessons, semester_start_date):
5959

6060
def export_ics(cal, xn, xq, xh):
6161

62-
if os.path.exists('target'):
62+
if os.path.exists('NUAAiCal-Data'):
6363
# print('Directory exists.')
6464
pass
6565
else:
66-
os.mkdir('target')
67-
filename = 'target/NUAA-curriculum-' + xn + '-' + xq + '-' + xh + '.ics'
66+
os.mkdir('NUAAiCal-Data')
67+
filename = 'NUAAiCal-Data/NUAA-curriculum-' + xn + '-' + xq + '-' + xh + '.ics'
6868
f = open(os.path.join(filename), 'wb')
6969
f.write(cal.to_ical())
7070
f.close()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='NUAAiCal',
13-
version='0.3.5',
13+
version='0.3.6',
1414
description='Generate NUAA curriculum to iCalendar file.',
1515
url='https://github.com/Triple-Z/NUAA-iCal-Python',
1616
author='TripleZ',

0 commit comments

Comments
 (0)