Skip to content
Snippets Groups Projects
Commit 630fc791 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

packaging: remove `sys.path` hacks

There are not needed anymore since we've got "real" packaging now.
parent d6071d0f
No related branches found
No related tags found
1 merge request!22Package poulpe and add a tiny CLI wrapper for utils
......@@ -6,9 +6,6 @@
import subprocess
import sys
poulpe_root = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(poulpe_root, 'python-libs'))
import poulpe
ERR_CODE_NO_KEY = 1
......
......@@ -3,6 +3,5 @@
# Small tool to compare two results
import argparse
import collections
import os
import sys
......@@ -7,8 +6,5 @@
import sys
poulpe_root = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(poulpe_root, 'python-libs'))
import poulpe
err = poulpe.err
......
......@@ -15,9 +15,6 @@
ACTION_DEL,
}
poulpe_root = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(poulpe_root, 'python-libs'))
import poulpe
err = poulpe.err
......
......@@ -5,6 +5,5 @@
import argparse
import collections
import json
import os
import sys
......@@ -9,11 +8,5 @@
import sys
poulpe_root = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(poulpe_root, 'python-libs'))
import poulpe
HEADERS_KEYS = [
('data-env-vars', 'name'),
('benchmark', 'name'),
......
......@@ -8,9 +8,6 @@
import re
import sys
poulpe_root = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(poulpe_root, 'python-libs'))
import poulpe
......
#!/usr/bin/env python3
#
# Small tool to manipulaote
# Run an "atomic" benchmark unit from already setup env
import argparse
......@@ -4,4 +4,3 @@
import argparse
import os
import sys
......@@ -6,8 +5,5 @@
import sys
poulpe_root = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(poulpe_root, 'python-libs'))
from poulpe import runner
......
......@@ -3,8 +3,7 @@
from pathlib import Path
import functools
import itertools
import os
import random
import subprocess
import sys
......@@ -7,13 +6,7 @@
import random
import subprocess
import sys
x = os.path.abspath(sys.argv[0])
x = os.path.dirname(x)
x = os.path.dirname(x)
poulpe_root = os.path.dirname(x)
sys.path.insert(0, os.path.join(poulpe_root, 'python-libs'))
import poulpe
from poulpe import (
benchmarks as bench_mod,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment