Commit 333954c2 authored by gijs's avatar gijs

Fix path

parent ef21faf3
......@@ -33,12 +33,12 @@ app = Flask(__name__)
@app.route("/api/ploteps/")
def ploteps():
epsfile = request.args.get('epsfile')
hpglfile = './eps/{}.hpgl'.format(os.path.splitext(epsfile)[0])
hpglfile = './{}.hpgl'.format(os.path.splitext(epsfile)[0])
# converting eps to hpgl
subprocess.call([
'./eps2hpgl.sh',
'./eps/{0}'.format(epsfile)
'./{0}'.format(epsfile)
])
handle = open(hpglfile)
......
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