Commit 6c356027 authored by Till Bald's avatar Till Bald

[PEP8] minor changes for pylint

parent daa08dd9
......@@ -28,11 +28,12 @@ from collections import defaultdict
# the current directory has to be the directory where crosslinx.py is stored
if getattr(sys, 'frozen', False):
# we have a crosslinx executable created by pyinstaller
current_file_path = sys._MEIPASS
CURRENT_FILE_PATH = sys._MEIPASS
else:
# normal python script
current_file_path = os.path.dirname(os.path.realpath(__file__))
os.chdir(current_file_path)
CURRENT_FILE_PATH = os.path.dirname(os.path.realpath(__file__))
os.chdir(CURRENT_FILE_PATH)
del CURRENT_FILE_PATH
# add include/python add the beginning of sys. path
# to make sure that the modules distributed with crosslinx are used
......@@ -48,7 +49,7 @@ import pymzml
# pylint: enable=wrong-import-position
# Ensure the user is running the version of python we require.
if not hasattr(sys, "version_info") or sys.version_info < (3,0):
if not hasattr(sys, "version_info") or sys.version_info < (3, 0):
raise RuntimeError("Crosslinx requires Python 3.0 or later.")
PROTON_MASS = proteomicsKnowledge.PROTON_MASS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment