Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pyromaths
pyromaths
Commits
b9100aae
Commit
b9100aae
authored
May 24, 2018
by
Louis
Browse files
[cli] Suppression d'un changement inutile du PATH
parent
58207ac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pyromaths/cli/__main__.py
View file @
b9100aae
#!/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
...
...
utils/pyromaths-cli.py
View file @
b9100aae
...
...
@@ -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__"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment