mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
config.py: top-level docstring, import order, minor edits
This commit is contained in:
parent
6ae6efaee9
commit
b2629286b4
16
config.py
16
config.py
@ -1,9 +1,17 @@
|
||||
"""
|
||||
Code dealing with the configuration of the program.
|
||||
|
||||
On Windows this uses the Registry to store values in a flat manner.
|
||||
Linux uses a file, but for commonality it's still a flat data structure.
|
||||
"""
|
||||
|
||||
import numbers
|
||||
import sys
|
||||
import warnings
|
||||
from os import getenv, makedirs, mkdir, pardir
|
||||
from os.path import expanduser, dirname, exists, isdir, join, normpath
|
||||
from os.path import dirname, expanduser, isdir, join, normpath
|
||||
from sys import platform
|
||||
|
||||
import semantic_version
|
||||
|
||||
from constants import applongname, appname
|
||||
@ -13,7 +21,7 @@ appcmdname = 'EDMC'
|
||||
# appversion **MUST** follow Semantic Versioning rules:
|
||||
# <https://semver.org/#semantic-versioning-specification-semver>
|
||||
# Major.Minor.Patch(-prerelease)(+buildmetadata)
|
||||
appversion = '4.2.0-beta1' #-rc1+a872b5f'
|
||||
appversion = '4.2.0-beta1' # -rc1+a872b5f'
|
||||
# For some things we want appversion without (possible) +build metadata
|
||||
appversion_nobuild = str(semantic_version.Version(appversion).truncate('prerelease'))
|
||||
copyright = u'© 2015-2019 Jonathan Harris, 2020-2021 EDCD'
|
||||
@ -22,10 +30,10 @@ update_feed = 'https://raw.githubusercontent.com/EDCD/EDMarketConnector/releases
|
||||
update_interval = 8*60*60
|
||||
|
||||
|
||||
if platform=='darwin':
|
||||
if platform == 'darwin':
|
||||
from Foundation import NSBundle, NSUserDefaults, NSSearchPathForDirectoriesInDomains, NSApplicationSupportDirectory, NSDocumentDirectory, NSLibraryDirectory, NSUserDomainMask
|
||||
|
||||
elif platform=='win32':
|
||||
elif platform == 'win32':
|
||||
import ctypes
|
||||
from ctypes.wintypes import *
|
||||
import uuid
|
||||
|
Loading…
x
Reference in New Issue
Block a user