# Path: OpenNumismat/version.py



import os
import sys
import OpenNumismat
from PyQt5.QtCore import QStandardPaths
from OpenNumismat import version




def init_pathes():
    if version.Portable:
        OpenNumismat.HOME_PATH = '.'
    else:
        # Getting default path for storing user data
        if sys.platform in ('win32', 'darwin'):
            location = QStandardPaths.DocumentsLocation
        else:
            location = QStandardPaths.HomeLocation
        
        doc_dirs = QStandardPaths.standardLocations(location)
        if doc_dirs:

# Path: OpenNumismat/version.py



# Path: OpenNumismat/pathes.py
import os
import sys
import OpenNumismat
from PyQt5.QtCore import QStandardPaths
from OpenNumismat import version




def init_pathes():
    if version.Portable:
        OpenNumismat.HOME_PATH = '.'
    else:
        # Getting default path for storing user data
        if sys.platform in ('win32', 'darwin'):
            location = QStandardPaths.DocumentsLocation
        else:
            location = QStandardPaths.HomeLocation
        
        doc_dirs = QStandardPaths.standardLocations(location)
        if doc_dirs:

            OpenNumismat.HOME_PATH = os.path.join(doc_dirs[0], version.AppName)
