moving files to allow pip installation
This commit is contained in:
@@ -555,7 +555,7 @@ def setupdefaultoptions(options):
|
||||
if 'reverse' not in options:
|
||||
options.reverse=False
|
||||
if 'style' not in options or options.style is None:
|
||||
options.style=os.path.join(os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0]))),'lib','style.css')
|
||||
options.style=os.path.join(os.path.dirname(__file__),'lib','style.css')
|
||||
if 'timesort' not in options:
|
||||
options.timesort=False
|
||||
if 'thumbs' not in options:
|
||||
@@ -601,7 +601,7 @@ def execute_plain():
|
||||
writeconfig(options)
|
||||
sys.exit(0)
|
||||
# Copy all resources to target folder
|
||||
pathname=os.path.dirname(os.path.realpath(sys.argv[0]))
|
||||
pathname=os.path.dirname(__file__)
|
||||
fullpath=os.path.abspath(pathname)
|
||||
libpath=os.path.join(options.startpath,'.qalbum')
|
||||
if not os.path.exists(options.style):
|
||||
0
lib/jquery.js → qalbum/lib/jquery.js
vendored
0
lib/jquery.js → qalbum/lib/jquery.js
vendored
@@ -18,7 +18,7 @@
|
||||
import sys,os
|
||||
import subprocess
|
||||
from argparse import ArgumentParser
|
||||
import Qalbum
|
||||
from qalbum import Qalbum
|
||||
|
||||
# (c) ville.q.rantanen@gmail.com
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import Qalbum
|
||||
from qalbum import Qalbum
|
||||
from argparse import ArgumentParser
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user