Skip to content
Snippets Groups Projects
Commit e0b67d07 authored by Kelvin Jones's avatar Kelvin Jones
Browse files

Fixes: Fixed import error

Fixes: Fixed import os in render_settings
parent 16e6ae7f
No related branches found
No related tags found
No related merge requests found
import json import json
import os
from os import listdir from os import listdir
from os.path import isfile, join from os.path import isfile, join, abspath, dirname
from flask import Blueprint, render_template, abort, jsonify, request from flask import Blueprint, render_template, abort, jsonify, request
from model import * from model import *
...@@ -57,7 +58,6 @@ def get_setting(setting_name): ...@@ -57,7 +58,6 @@ def get_setting(setting_name):
@settings_module.route('/render-settings/') @settings_module.route('/render-settings/')
def render_settings(): def render_settings():
import os
path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) path = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
render_settings_path = os.path.join(path, 'render_settings/') render_settings_path = os.path.join(path, 'render_settings/')
onlyfiles = [f for f in listdir(render_settings_path) if isfile(join(render_settings_path, f))] onlyfiles = [f for f in listdir(render_settings_path) if isfile(join(render_settings_path, f))]
......
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