ftagger 0.1.3__tar.gz → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ftagger
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Simple command-line file tagger
5
5
  Author-email: Charlie O'Dwyer <charlieodwyer2289@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ftagger"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  description = "Simple command-line file tagger"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ftagger
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Simple command-line file tagger
5
5
  Author-email: Charlie O'Dwyer <charlieodwyer2289@gmail.com>
6
6
  License-Expression: MIT
@@ -0,0 +1,8 @@
1
+ from pathlib import Path
2
+
3
+ FMDATA = Path.home() / ".fmdata"
4
+ FMDEFAULT = f"{Path.home()}.fmdata/.fmdefault"
5
+ FMALIASES = f"{Path.home()}.fmdata/.fmaliases"
6
+ FMALIASLOOKUP = f"{Path.home()}.fmdata/.fmaliaslookup"
7
+ FMUNDOLOOKUP = f"{Path.home()}.fmdata/.fmundolookup"
8
+ FMPREVIOUSCOMMAND = f"{Path.home()}.fmdata/.fmpreviouscommand"
@@ -1,10 +1,13 @@
1
1
  import ansi_codes as ac
2
2
  import json
3
3
  import globals
4
+ import os
4
5
 
5
6
 
6
7
  def check_for_first_run():
7
8
  if not globals.FMDATA.exists():
9
+ os.mkdir(globals.FMDATA)
10
+
8
11
  with open(globals.FMALIASLOOKUP, "w") as file:
9
12
  json.dump({}, file, indent=4)
10
13
 
@@ -1,8 +0,0 @@
1
- from pathlib import Path
2
-
3
- FMDATA = Path.home() / ".fmdata"
4
- FMDEFAULT = f"{Path.home()}/.fmdata/.fmdefault"
5
- FMALIASES = f"{Path.home()}/.fmdata/.fmaliases"
6
- FMALIASLOOKUP = f"{Path.home()}/.fmdata/.fmaliaslookup"
7
- FMUNDOLOOKUP = f"{Path.home()}/.fmdata/.fmundolookup"
8
- FMPREVIOUSCOMMAND = f"{Path.home()}/.fmdata/.fmpreviouscommand"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes