File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- appdirs == 1.4.4
21cycler == 0.11.0
32decorator == 5.1.1
43docopt == 0.6.2
@@ -8,6 +7,7 @@ matplotlib==3.7.1
87networkx == 3.1
98numpy == 1.24.3
109Pillow == 9.5.0
10+ platformdirs == 4.2.2
1111pyparsing == 3.0.9
1212pyqt-distutils == 0.7.3
1313PyQt6 == 6.4.2
Original file line number Diff line number Diff line change 44
55from PyQt6 .QtWidgets import QApplication
66import yaml
7- import appdirs
7+ import platformdirs
88
99from .defaults import DEFAULT_PREFERENCES , DEFAULT_PROPELLANTS , KNSU_PROPS
1010from .logger import logger
@@ -59,7 +59,7 @@ def loadFile(path, dataType):
5959 # Mac OS put these files alongside the executable, but the v0.5.0 added an installer for windows so it makes more
6060 # sense to use the user's data directory now.
6161def getConfigPath ():
62- path = appdirs .user_data_dir ('openMotor' , 'openMotor' )
62+ path = platformdirs .user_data_dir ('openMotor' , 'openMotor' )
6363 if not os .path .isdir (path ): # Create directory if it doesn't exist
6464 os .mkdir (path )
6565 return '{}/' .format (path )
Original file line number Diff line number Diff line change 33import sys
44import traceback
55import os
6- import appdirs
6+ import platformdirs
77
88class Logger ():
99 def __init__ (self ):
@@ -16,7 +16,7 @@ def __init__(self):
1616 self .log ('Application started at {}' .format (startDate ))
1717
1818 def _openLogFile (self ):
19- path = appdirs .user_log_dir ('openMotor' , 'openMotor' )
19+ path = platformdirs .user_log_dir ('openMotor' , 'openMotor' )
2020 if not os .path .isdir (path ):
2121 os .makedirs (path )
2222 self ._file = open (os .path .join (path , "openMotor.log" ), 'a' )
You can’t perform that action at this time.
0 commit comments