Suppose I am in ~/programming/ass1 and the executable is in ~/programming/ass1/seattle/seattle_repy/repy.py.
I tried to create a symlink like so
ln -s seattle/seattle_repy/repy.py repy
to be able to type
python repy restrictions.test example.1.1.repy
instead of
python seattle/seattle_repy/repy.py restrictions.test example.1.1.repy
But it didn’t work (I get “python: can’t open file ‘/home/philipp/Desktop/Uni/NTM/UE/Uebungsblatt 3/safe_check.py’: [Errno 2] No such file or directory”).
So repy.py can’t find safe_check.py.
Is this possible at all?
Cheers,
Philipp
You’ll need to frob
sys.pathto add the path containing the modules, but it’s probably easier to make a shell script that callsexec python ~/programming/ass1/seattle/seattle_repy/repy.py.