eric6/Helpviewer/FlashCookieManager/FlashCookieUtilities.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
--- a/eric6/Helpviewer/FlashCookieManager/FlashCookieUtilities.py	Mon Sep 09 18:52:08 2019 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2015 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing some utility functions.
-"""
-
-from __future__ import unicode_literals
-
-import os
-
-from PyQt5.QtCore import QProcessEnvironment
-
-import Globals
-
-
-def flashDataPathForOS():
-    """
-    Function to determine the OS dependent path where Flash cookies
-    are stored.
-    
-    @return Flash data path
-    @rtype str
-    """
-    # On Microsoft Windows NT 5.x and 6.x, they are stored in:
-    # %APPDATA%\Macromedia\Flash Player\#SharedObjects\
-    # %APPDATA%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\
-    # On Mac OS X, they are stored in:
-    # ~/Library/Preferences/Macromedia/Flash Player/#SharedObjects/
-    # ~/Library/Preferences/Macromedia/Flash Player/macromedia.com/support/⏎
-    #   flashplayer/sys/
-    # On Linux or Unix, they are stored in:
-    # ~/.macromedia/Flash_Player/#SharedObjects/
-    # ~/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/
-    # For Linux and Unix systems, if the open-source Gnash plugin is being used
-    #  instead of the official Adobe Flash, they will instead be found at:
-    # ~/.gnash/SharedObjects/
-    
-    flashPath = ""
-    
-    if Globals.isWindowsPlatform():
-        appData = QProcessEnvironment.systemEnvironment().value("APPDATA")
-        appData = appData.replace("\\", "/")
-        flashPath = appData + "/Macromedia/Flash Player"
-    elif Globals.isMacPlatform():
-        flashPath = os.path.expanduser(
-            "~/Library/Preferences/Macromedia/Flash Player")
-    else:
-        if os.path.exists(os.path.expanduser("~/.macromedia")):
-            flashPath = os.path.expanduser("~/.macromedia/Flash_Player")
-        elif os.path.exists(os.path.expanduser("~/.gnash")):
-            flashPath = os.path.expanduser("~/.gnash")
-    
-    return flashPath

eric ide

mercurial