Linux path problem solved (finally)

This commit is contained in:
OzzieIsaacs 2016-08-07 10:32:45 +02:00
parent 5a0faf9950
commit 59136a9cc2
5 changed files with 6 additions and 7 deletions

View File

@ -5,8 +5,7 @@ import os
import sys import sys
from configobj import ConfigObj from configobj import ConfigObj
CONFIG_FILE= os.path.join(os.path.normpath(os.path.dirname(os.path.realpath(__file__))+os.sep+".."+os.sep), "config.ini")
CONFIG_FILE= os.path.join(os.path.dirname(os.path.realpath(__file__))+os.sep+".."+os.sep, "config.ini")
CFG = ConfigObj(CONFIG_FILE) CFG = ConfigObj(CONFIG_FILE)
def CheckSection(sec): def CheckSection(sec):

View File

@ -5,7 +5,7 @@ from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import * from sqlalchemy.orm import *
import os import os
from cps import config import config
import re import re
import ast import ast

View File

@ -1,8 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from cps import db, ub import db, ub
from cps import config import config
from flask import current_app as app from flask import current_app as app
import smtplib import smtplib

View File

@ -5,7 +5,7 @@ from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import * from sqlalchemy.orm import *
import os import os
from cps import config import config
from werkzeug.security import generate_password_hash from werkzeug.security import generate_password_hash
dbpath = os.path.join(config.APP_DB_ROOT, "app.db") dbpath = os.path.join(config.APP_DB_ROOT, "app.db")

View File

@ -8,7 +8,7 @@ import sys
import textwrap import textwrap
mimetypes.add_type('application/xhtml+xml','.xhtml') mimetypes.add_type('application/xhtml+xml','.xhtml')
from flask import Flask, render_template, session, request, Response, redirect, url_for, send_from_directory, make_response, g, flash, abort from flask import Flask, render_template, session, request, Response, redirect, url_for, send_from_directory, make_response, g, flash, abort
from cps import db, config, ub, helper import db, config, ub, helper
import os import os
import errno import errno
from sqlalchemy.sql.expression import func from sqlalchemy.sql.expression import func