moving files to allow pip installation

This commit is contained in:
ville rantanen
2017-08-16 15:01:46 +03:00
parent f872c87060
commit 83f0274297
9 changed files with 4 additions and 5 deletions

1
Qalbum
View File

@@ -1 +0,0 @@
Qalbum.py

View File

@@ -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):

View File

@@ -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

View File

@@ -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