Python Forum
installing an application on a Mac OS question
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
installing an application on a Mac OS question
#1
My question is a bit complex but simple at the same time.
I designed an application for a client. They want me to install the application on a Mac as well as Windows. This application uses images and csv file located in the same folder as the exe file. So access to those images are simple just by using the"./(filename)" path. My question is this, seeing as folder paths are different in Mac than Windows, will i still be able to have access to those files if they are located in the same path as the dmg file? or do i have to do some wizardry in the designing of the application to make it work on both Windows and Apple devices?
Reply
#2
I've not ever used a mac but, using pathlib to get the executing scripts path, should not matter what os you are using. An example gives the path of the executing script

from pathlib import Path
path = Path(__file__).parent
print(path)
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send data from a python application to an external application aditya_rajiv 1 3,010 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  Installing Python Application pplgf 3 3,423 Apr-27-2020, 10:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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