Project

General

Profile

Actions

Bug #745

closed

os.path.dirname(__file__) is not valid for Mac.app programs

Added by Neil Voss almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
07/18/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
Appion/Leginon 2.0.1
Show in known bugs:
No
Workaround:

Description

os.path.dirname(file) is not valid for Mac.app programs

Need to find alternative in apParam.getAppionPath and leginon/icons/__init__.py

Actions #1

Updated by Neil Voss almost 14 years ago

I should maybe try the inspect module:

import inspect
this_file = inspect.currentframe().f_code.co_filename

Actions #2

Updated by Neil Voss almost 14 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Neil Voss to Jim Pulokas
  • Priority changed from High to Normal
  • Target version set to TiltPicker v2.0
  • % Done changed from 0 to 100
Actions #3

Updated by Neil Voss almost 14 years ago

  • Project changed from TiltPicker to Appion
  • Affected Version set to Appion/Leginon 2.0.1
  • Show in known bugs set to No
Actions #4

Updated by Jim Pulokas almost 14 years ago

  • Status changed from In Code Review to Closed

reviewed code and tested with Leginon. assuming appion stuff works too.

Actions

Also available in: Atom PDF