Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyInstaller
#1
I've been using PyInstaller for quite some time now and I have been pretty successful with all my projects
I now have run into a problem where I need to use the virtual path can you do this

import PyInstaller.__main__

PyInstaller.__main__.run([
    '--noconfirm',
    '--onedir',
    '--windowed',
    
])
My example would be path = c:\\Test
and then somehow tell it where the virtual path is

import PyInstaller.__main__

PyInstaller.__main__.run([
    '--noconfirm',
    '--onedir',
    '--windowed',
    r'--version-file=Maintenance_versionfile.txt',
    r'--add-data=Maintenance_Notes.txt;.',
    r'--add-data=Maintenance_Data.py;.',
    r'--add-data=Maintenance_admin_Notes.txt;.',
    r'--add-data=Maintenance_admin_Tools.py;.',
    r'--add-data=Admin_Privileges_Win11.txt;.',
    r'--add-data=Admin_Privileges_Win10.txt;.',
    r'Maintenance.py',
    '--clean'

])
As anybody done this
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020