File tree Expand file tree Collapse file tree
src/BDSP_ColorVariation_JSONParser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 - name : Run Nuitka for BDSP_ColorVariation_JSONParser
2828 uses : Nuitka/Nuitka-Action@main
2929 with :
30- nuitka-version : 2.6.9
30+ nuitka-version : main
3131 script-name : src/BDSP_ColorVariation_JSONParser/json_parser.py
3232 output-file : BDSP_ColorVariation_JSONParser
3333 mode : app
Original file line number Diff line number Diff line change 1414
1515def get_resource_path (file_path : str ) -> str :
1616 """
17- Returns path to file or directory inside project, when used PyInstaller or Nuitka are used .
17+ Returns path to file or directory inside project.
1818 :param file_path: Original path to file or directory.
1919 :return: Modified path to file or directory.
2020 """
21- if "NUITKA_ONEFILE_PARENT" in os .environ :
22- base_path = os .path .dirname (sys .executable )
23- elif hasattr (sys , "_MEIPASS" ):
21+ if hasattr (sys , "_MEIPASS" ): # PyInstaller.
2422 base_path = getattr (sys , "_MEIPASS" )
2523 else :
2624 base_path = os .path .dirname (__file__ )
You can’t perform that action at this time.
0 commit comments