replbase 0.0.49__tar.gz → 0.0.50__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.1
2
2
  Name: replbase
3
- Version: 0.0.49
3
+ Version: 0.0.50
4
4
  Summary: "Combination of other REPL tools into a reusable class that generates a REPL"
5
5
  License: MIT
6
6
  Author: Joseph Bochinski
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "replbase"
7
- version = "0.0.49"
7
+ version = "0.0.50"
8
8
  description = "\"Combination of other REPL tools into a reusable class that generates a REPL\""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  license = "MIT"
@@ -251,9 +251,9 @@ class ReplBase:
251
251
 
252
252
  self.console = Console(color_system=self.color_system, theme=self.theme)
253
253
 
254
- self.history = self.history or os.path.expanduser(
255
- "~/.config/.prompt_history"
256
- )
254
+ if not self.history:
255
+ history_name = re.sub(r"\s+", "_", self.title.lower())
256
+ self.history = os.path.expanduser(f"~/.config/.{history_name}_history")
257
257
 
258
258
  if self.history:
259
259
  hist_dir = os.path.dirname(self.history)
File without changes
File without changes