Modify

Ticket #273 (reopened enhancement)

Opened 9 years ago

Last modified 8 years ago

Remove References to Relative Paths

Reported by: aspidites@… Owned by: aspidites
Priority: major Milestone: Sprint: Character customization
Component: scripts Version: Sprint: Character customization
Keywords: Cc:
Blocked By: Blocking:
Department: Programming

Description

A lot of code uses relative paths instead of absolute paths, which causes the tools to crash or through errors if not run from the correct directory.

Example: descend to the maps directory and try to invoke the map editor: ../../tools/map_editor/run.py

As such, paths should be absolute. We need not explicitly type out full paths, but simply make sure they are resolved as absolute instead (os.path.abspath())

Attachments

traceback.log (615 bytes) - added by aspidites 9 years ago.
traceback for relative path resolution
traceback2.log (594 bytes) - added by aspidites 9 years ago.
this one actually has the error messages.

Change History

Changed 9 years ago by aspidites

traceback for relative path resolution

Changed 9 years ago by aspidites

this one actually has the error messages.

comment:1 Changed 9 years ago by aspidites@…

Please close as invalid, or change to enhancement.

comment:2 Changed 9 years ago by barra_parpg

  • Type changed from bug to enhancement

comment:3 Changed 9 years ago by kb1pkl

  • Department set to Programming
  • Owner changed from parpg to kb1pkl
  • Version changed from trunk to Sprint: Character customization
  • Status changed from new to assigned
  • Milestone changed from Release: Techdemo 2 to Sprint: Character customization

comment:4 Changed 9 years ago by kb1pkl

  • Owner changed from kb1pkl to aspidites
  • Status changed from assigned to new

comment:5 Changed 8 years ago by aspidites

  • Status changed from new to closed
  • Resolution set to fixed

The creation of the build system has resolved this issue as it pertains to data files. If a substantial number of relative paths are later located, please re-open this bug.

comment:6 Changed 8 years ago by aspidites

  • Status changed from closed to reopened
  • Resolution fixed deleted

all guis are still referenced using relative paths

comment:7 Changed 8 years ago by aspidites

Added patch that gets us futher along in correcting this issue. Namely: -- FontsPath? is no longer hard coded and is configurable

View

Add a comment

Modify Ticket

Action
as reopened
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.