canvas-download 1.1.0__tar.gz → 1.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ dist/
2
+ login.json
3
+ config.json
4
+ .DS_Store
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: canvas-download
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: Downloads Canvas modules/files into a local directory.
5
5
  Project-URL: Homepage, https://github.com/suncloudsmoon/canvas-download
6
6
  Project-URL: Issues, https://github.com/suncloudsmoon/canvas-download/issues
@@ -9,7 +9,7 @@ dependencies = [
9
9
  "pywin32; platform_system == 'Windows'"
10
10
  ]
11
11
  name = "canvas-download"
12
- version = "1.1.0"
12
+ version = "1.1.2"
13
13
  authors = [
14
14
  {name="suncloudsmoon", email="farsaturn@outlook.com"}
15
15
  ]
@@ -23,15 +23,15 @@ def get_valid_filename(filename: str):
23
23
  def main():
24
24
  config_dir = Path(".config")
25
25
  login_path = config_dir / "login.json"
26
- if not courses_path.exists():
27
- courses_path.mkdir()
26
+ if not config_dir.exists():
27
+ config_dir.mkdir()
28
28
  if sys.platform == "win32":
29
29
  win32api.SetFileAttributes(str(config_dir), win32con.FILE_ATTRIBUTE_HIDDEN)
30
30
 
31
31
  contents = json.dumps({"API_URL": "", "API_KEY": ""}, indent=4)
32
32
  login_path.write_text(contents, encoding="utf-8")
33
33
  print(
34
- f"Fill out the details of your canvas login credentials at {login_path} and relaunch this application to continue. Note: '.config' directory is hidden."
34
+ f"Fill out the details of your canvas login credentials at '{login_path}' and relaunch this application to continue. Note: '.config' directory is hidden."
35
35
  )
36
36
  return
37
37
 
@@ -1,3 +0,0 @@
1
- dist/
2
- login.json
3
- config.json