Skip to content

Commit

Permalink
Future proofed for python upgrades
Browse files Browse the repository at this point in the history
There is now a custom location for python package.
  • Loading branch information
igo95862 committed Oct 15, 2020
1 parent a826655 commit 66d72e1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bubblejail/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ source_files = [
'services.py',
]

py_installation.install_sources(source_files,
subdir : meson.project_name()
install_data(source_files,
install_dir : 'lib/bubblejail/python_packages/bubblejail',
)
7 changes: 5 additions & 2 deletions data/bubblejail_gui_qt_launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/python3 -IOO

from bubblejail.bubblejail_gui_qt import run_gui
from sys import path
from importlib import import_module


run_gui()
path.append('/usr/lib/bubblejail/python_packages')

import_module('bubblejail.bubblejail_gui_qt').run_gui() # type: ignore
9 changes: 7 additions & 2 deletions data/bubblejail_helper_launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/python3 -IOO

from bubblejail.bubblejail_helper import bubblejail_helper_main
from sys import path
from importlib import import_module


bubblejail_helper_main()
path.append('/usr/lib/bubblejail/python_packages')


import_module('bubblejail.bubblejail_helper'
).bubblejail_helper_main() # type: ignore
8 changes: 6 additions & 2 deletions data/bubblejail_launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/python3 -IOO

from bubblejail.bubblejail_cli import bubblejail_main
from sys import path
from importlib import import_module


bubblejail_main()
path.append('/usr/lib/bubblejail/python_packages')

import_module('bubblejail.bubblejail_cli'
).bubblejail_main() # type: ignore

0 comments on commit 66d72e1

Please sign in to comment.