Commit 4be6ffd5 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Use env import instead of changing the module search path by hand in run scripts

parent 2e198433
import sys
import os
# append module root directory to sys.path
sys.path.append(
os.path.dirname(
os.path.dirname(
os.path.abspath(__file__)
)
)
)
#!/usr/bin/env python3
import os
import sys
# add psot libraries to module search path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import env
import argparse
from psot import config
from os import system
......
#!/usr/bin/env python3
import os
import sys
# add psot libraries to module search path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import env
import argparse
import re
from os import system,makedirs
......
#!/usr/bin/env python3
import os
import sys
# add psot libraries to module search path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import env
import argparse
from psot import config
from os import system, makedirs
......
#!/usr/bin/env python3
import os
import sys
# add psot libraries to module search path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import env
import argparse
from psot import config
from os import system
......
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