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:
June Tate-Gans 2021-05-23 12:04:43 -05:00
parent 5481bbff22
commit 9958ea234d
2 changed files with 6 additions and 5 deletions

View File

@ -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')

View File

@ -12,3 +12,7 @@ def main():
app = Application() app = Application()
app.run(sys.argv) app.run(sys.argv)
if __name__ == '__main__':
main()