Skip to content

Commit

Permalink
Merge pull request #437 from Hari-Nagarajan/hotfix
Browse files Browse the repository at this point in the history
amazon.py - make path_to_prefs platform agnostic
  • Loading branch information
DakkJaniels authored Dec 23, 2020
2 parents a81fc43 + 4a7c832 commit 2667c30
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stores/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,9 +1110,11 @@ def create_driver(self):
self.setup_driver = False

# Delete crashed, so restore pop-up doesn't happen
path_to_prefs = (
os.path.dirname(os.path.abspath("__file__"))
+ "\\.profile-amz\\Default\\Preferences"
path_to_prefs = os.path.join(
os.path.dirname(os.path.abspath("__file__")),
".profile-amz",
"Default",
"Preferences",
)
with fileinput.FileInput(path_to_prefs, inplace=True) as file:
for line in file:
Expand Down

0 comments on commit 2667c30

Please sign in to comment.