Commit 904dae36 authored by Louis's avatar Louis
Browse files

Suppression de code inutile

parent 775e711f
......@@ -142,19 +142,6 @@ class LegacyExercise(TexExercise):
def tex_answer(self):
return "\n".join(self.ans)
def __module(filename):
"""Expect an absolute path, subpath of this module's path. Return a relative path."""
# Get root of this application
root = '/'.join(__file__.split('/')[:-len(__name__.split('.')) - 1])
# Get filename, relative to said root
relative = filename[len(root)+1:]
# Remove extension
relative = relative[:-len('.py')]
# Turn file system path into python package
relative = relative.replace('/', '.')
return relative
def __import(name=__name__, parent=None):
''' Import 'name' from 'parent' package. '''
if not isinstance(name, str):
......@@ -18,8 +18,6 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# import sys, os
# sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
import random
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