Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path direct folder for Mac #96

Open
mac4kent opened this issue Dec 27, 2024 · 0 comments
Open

Path direct folder for Mac #96

mac4kent opened this issue Dec 27, 2024 · 0 comments

Comments

@mac4kent
Copy link

You will need use Macintosh thing support Thanks.

For Windows and Linux is a
cd c:/>

For Macintosh is a
cd /Volumes/

This code:
if osys == "Linux":
if debug:
print("FONTSELECTOR --- OS : Linux")

    return [
        r"/usr/share/fonts", # Debian Ubuntu
        r"/usr/local/share/fonts", # Debian Ubuntu
        r"/usr/X11R6/lib/X11/fonts", # RH
        os.path.join(user_path, r".local/share/fonts"), # Fedora
        os.path.join(user_path, r".fonts"), # Debian Ubuntu
    ]
elif osys == "Windows":
    if debug:
        print("FONTSELECTOR --- OS : Windows")
    
    return [
        r"C:\Windows\Fonts",
        r" C:\Program Files\WindowsApps",
        os.path.join(user_path, "fonts"), # System wide install
        os.path.join(user_path, r"Microsoft\Windows\Fonts"), # User install
    ]
elif osys == "Darwin":
    if debug:
        print("FONTSELECTOR --- OS : Mac")
    
    return [
        # MacOS 10.8 to present (MacOS 15.2) December 17, 2024
        # For example: cd /Volumes/(Hard Drive name)/System/Library/Fonts/
        os.path.join(user_path, r"Library/Fonts/"), # ~/Library/Fonts/ path.
        r"/Library/Fonts/",                         # /Library/Fonts/ path.
        r"/System/Library/Fonts/",                  # /System/Fonts/ path.
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant