Skip to content
Snippets Groups Projects
Commit 536f28c4 authored by Svetlana Tkachenko's avatar Svetlana Tkachenko
Browse files

Add check for Python 3.

parent 4781647f
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,16 @@ ...@@ -16,7 +16,16 @@
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with guppy. If not, see <http://www.gnu.org/licenses/>. # along with guppy. If not, see <http://www.gnu.org/licenses/>.
import sys import sys
if sys.version_info[0] < 3:
print("Error: guppy only works with Python 3+. Please install python 3 and re-try.")
exit()
import os import os
import configparser import configparser
import asyncore import asyncore
...@@ -32,7 +41,6 @@ class main(object): ...@@ -32,7 +41,6 @@ class main(object):
print(" \__, |\__,_| .__/| .__/ \__, |") print(" \__, |\__,_| .__/| .__/ \__, |")
print((" |___/ |_| |_| |___/ version "+self.version)) print((" |___/ |_| |_| |___/ version "+self.version))
print("") print("")
self.directory = os.getcwd() + '/conf/' self.directory = os.getcwd() + '/conf/'
print(("Settings directory: %s" % self.directory)) print(("Settings directory: %s" % self.directory))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment