Commits

Moises Henriquez committed 65b5516

Finished setup.py

Comments (0)

Files changed (2)

     author_email = __author_email__,
     url = 'http://bitbucket.org/m0e_lnx/vasm',
     license = 'GNU GPL v3',
-    packages = ['vasm'],
-    package_dir={'vasm':'src/vasm'},
-    package_data={'vasm':['src/vasm/data/*']},
+    packages = ['vasm', 'vasm.backend', 'vasm.ui', 'vasm.ui.gtk2', 'vasm.ui.urwid'],
+    package_dir={'vasm':'src/vasm/'},
     data_files=[
         ('/usr/share/pixmaps',['src/vasm/data/vasm.png']),
         ('/usr/share/applications', ['src/vasm/data/vasm.desktop',
-            'src/vasm/data/vasm-tui.desktop']),
-        ('/usr/share/vasm', ['src/vasm/data/LICENSE',
-            'src/vasm/setup_logging.sh'])],
+            'src/vasm/data/vasm-tui.desktop'],
+        ),
+        ('/usr/share/vasm/data', ['src/vasm/data/login_gdm.png',
+            'src/vasm/data/login_kdm.png',
+            'src/vasm/data/login_unknown.png',
+            'src/vasm/data/login_xdm.png',
+            'src/vasm/data/vasmcc-logo.png',
+            'src/vasm/data/vasmcc-logo_trimmed.png',
+            'src/vasm/data/vectorlinux-logo.png',
+            'src/vasm/data/LICENSE',
+            'src/vasm/data/servicehelp.txt',
+            'src/vasm/data/setup_logging.sh']),
+        ('/usr/share/vasm/data/icons', ['src/vasm/data/icons/bootmenu.png',
+            'src/vasm/data/icons/bootmode.png',
+            'src/vasm/data/icons/category_graphical_environment.png',
+            'src/vasm/data/icons/category_hardware.png',
+            'src/vasm/data/icons/category_networking.png',
+            'src/vasm/data/icons/category_personal.png',
+            'src/vasm/data/icons/category_startup_options.png',
+            'src/vasm/data/icons/category_system.png',
+            'src/vasm/data/icons/category_unknown.png',
+            'src/vasm/data/icons/datetime.png',
+            'src/vasm/data/icons/gdmconfig.png',
+            'src/vasm/data/icons/gparted.svg',
+            'src/vasm/data/icons/gui_desktop.png',
+            'src/vasm/data/icons/harddisk.png',
+            'src/vasm/data/icons/hardinfo.png',
+            'src/vasm/data/icons/kdmconfig.png',
+            'src/vasm/data/icons/package-utilities.png',
+            'src/vasm/data/icons/terminal.png',
+            'src/vasm/data/icons/users.png',
+            'src/vasm/data/icons/xfce.png',
+            'src/vasm/data/icons/xscreensaver.xpm']),            
+            ],
     requires = ['psutil','urwid','parted','pexpect','shutil'],
     scripts = ['src/vasm.py'])

src/vasm/backend/utils.py

 __author__ = "Moises Henriquez"
 __author_email__ = "moc.liamg@xnl.E0M"[::-1]
 
-datapath = os.path.join(os.path.dirname(os.path.dirname((__file__))), 'data')
+if os.path.exists('/usr/share/vasm/data'):
+    datapath = '/usr/share/vasm/data'
+else:
+    datapath = os.path.join(os.path.dirname(os.path.dirname((__file__))), 'data')
 
 def _(txt):
     return txt
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.