diff --git a/lutris/gui/lutriswindow.py b/lutris/gui/lutriswindow.py index 31e93c8d8..0c201f2df 100644 --- a/lutris/gui/lutriswindow.py +++ b/lutris/gui/lutriswindow.py @@ -29,8 +29,6 @@ import gtk import os import gobject -import lutris.coverflow.coverflow - from lutris.gui.widgets import GameTreeView, GameCover from lutris.game import LutrisGame, get_list from lutris.config import LutrisConfig diff --git a/lutris/lutrisconfig.py b/lutris/lutrisconfig.py index d1756b547..a8464b977 100644 --- a/lutris/lutrisconfig.py +++ b/lutris/lutrisconfig.py @@ -16,18 +16,22 @@ # along with this program. If not, see . # -# where your project will head for your data (for instance, images and ui files) -# by default, this is ../data, relative your trunk layout +# where your project will head for your data (for instance, images and ui +# files) by default, this is ../data, relative your trunk layout +""" +Most likely generated by Quickly +""" +import os -#__lutris_data_directory__ = '/usr/local/share/lutris/' __lutris_data_directory__ = '/usr/share/lutris/' __license__ = 'GPL-3' -import os -class project_path_not_found(Exception): +class ProjectPathNotFound(Exception): + """Dummy exception for missing project path""" print "can't find path " + def get_data_file(*path_segments): """Get the full path to a data file. @@ -37,6 +41,7 @@ def get_data_file(*path_segments): """ return os.path.join(getdatapath(), *path_segments) + def getdatapath(): """Retrieve lutris data path @@ -55,5 +60,4 @@ def getdatapath(): if os.path.exists(abs_data_path): return abs_data_path else: - raise project_path_not_found - + raise ProjectPathNotFound