Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Qirky committed Dec 18, 2018
1 parent 256979e commit ef44d2d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
import sys
import os, os.path

PYTHON_EXECUTABLE = os.path.basename(sys.executable)
# Check for location of Python

exec_path = os.path.abspath(os.path.dirname(sys.executable))
this_path = os.path.abspath(os.path.dirname("."))

if exec_path == this_path:

PYTHON_EXECUTABLE = "python"

else:

PYTHON_EXECUTABLE = os.path.basename(sys.executable)


PY_VERSION = sys.version_info[0]

# Any Py2to3
Expand Down

0 comments on commit ef44d2d

Please sign in to comment.