-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdepends_test.py
44 lines (36 loc) · 1009 Bytes
/
depends_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
"""
Ampache-FM: test your dependencies
"""
def check():
""" Importing all libraries used by ampache-fm """
clear = False
try:
import codecs
import configparser
import csv
import gi
import hashlib
import json
import os
import requests
import shutil
import time
import threading
import urllib.parse
import urllib.request
import ampache
gi.require_version('Peas', '1.0')
gi.require_version('PeasGtk', '1.0')
gi.require_version('Notify', '0.7')
gi.require_version('RB', '3.0')
from gi.repository import GObject, Peas, PeasGtk, Gio, Gtk
from gi.repository import RB
clear = True
except ImportError as errormsg:
print('\nDependency Problem\n\n' + str(errormsg))
if clear:
print('\nAll ampache-fm dependencies are satisfied\n')
return True
else:
return False