Commit 84fe7866 authored by notklaatu's avatar notklaatu

slowly learning proper Python filesystem structure

parent 97eee2ef
......@@ -13,13 +13,13 @@ launch_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
PYTHONDIR = site.getsitepackages()[0]
# Update sys.path to include modules
d = 'planterlibs'
d = 'planter'
if launch_dir == "/usr/bin":
print("Running from installation...")
modules_path = PYTHONDIR + '/' + d
modules_path = os.path.join(PYTHONDIR,"d")
else:
print("Running from filesystem...")
modules_path = launch_dir + "/usr/share/pyshared/" + d
modules_path = os.path.join(launch_dir,"usr","lib","python3","site-packages",d)
sys.path.insert(0, modules_path)
# Get app.py module
......
%global commit0 4cbe009309d3932991471fbf15b8a6f5bedaefce
%global pybasever 3.5
%global pybasever 3.6
%global pylibdir %{_libdir}/python%{pybasever}
Name: planter
Version: 1.5
Version: 1.6
Release: 1%{?dist}
Summary: Project directory planter
......
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