mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 08:23:50 -04:00
pipenv: Pre-migration to pipenv things
- Use an alternative xdg module that provides functions to generate XDG-paths. - Fix startup routines for the main configurator.
This commit is contained in:
parent
5481bbff22
commit
9958ea234d
@ -1,10 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
import os
|
from xdg import xdg_config_home
|
||||||
import os.path
|
|
||||||
import xdg.BaseDirectory as basedir
|
|
||||||
|
|
||||||
PROGNAME = 'g13gui'
|
PROGNAME = 'g13gui'
|
||||||
VERSION = '0.1.0'
|
VERSION = '0.1.0'
|
||||||
PROFILES_CONFIG_PATH = os.path.join(basedir.save_config_path('g13', 'g13gui'),
|
PROFILES_CONFIG_PATH = xdg_config_home() / 'g13' / 'g13gui' / 'profiles.json'
|
||||||
'profiles.json')
|
|
||||||
|
@ -12,3 +12,7 @@ def main():
|
|||||||
|
|
||||||
app = Application()
|
app = Application()
|
||||||
app.run(sys.argv)
|
app.run(sys.argv)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user