Commit 333954c2 authored by gijs's avatar gijs
Browse files

Fix path

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