Commit b9100aae authored by Louis's avatar Louis
Browse files

[cli] Suppression d'un changement inutile du PATH

parent 58207ac7
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 -- Louis Paternault (spalax@gresille.org)
# Copyright (C) 2016-2018 -- Louis Paternault (spalax@gresille.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -33,13 +33,6 @@ import sys
# Quick and dirty definition of `_` as the identity function
gettext.install('pyromaths', unicode=1)
from os.path import dirname, realpath, split, join
from os import pardir
basedir = dirname(realpath(__file__))
_path, _dir = split(basedir)
sys.path[0] = realpath(join(_path, pardir))
exec ("from pyromaths import pyromaths")
from pyromaths.cli import exercise_argument, PyromathsException
from pyromaths.ex.test import TestPerformer, generate
......
......@@ -22,7 +22,7 @@ import os
import runpy
import sys
sys.path.insert(0, os.path.realpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "src")))
sys.path.insert(0, os.path.realpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir, "src")))
if __name__ == "__main__":
runpy.run_module("pyromaths.cli", run_name="__main__")
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