Opened 5 years ago

Closed 5 years ago

#2020 closed defect (fixed) should be callable from any directory

Reported by: fhd Assignee: trev
Priority: P4 Milestone:
Module: Automation Keywords: goodfirstbug
Cc: Blocked By:
Blocking: Platform: Unknown
Ready: yes Confidential: no
Tester: Verified working:
Review URL(s):

Description (last modified by fhd)


adblockplus repository, revision ab709bdd81e1.

Pretty sure it affects most of our projects though.

How to reproduce

  1. Change to any directory other than the adblockplus working directory.
  2. Call from there.

Observed behaviour

The build scripts are looking for various files in the current working directory, so this fails.

Expected behaviour

The current working directory shouldn't matter, the files should be expected next to

Change History (9)

comment:1 Changed 5 years ago by fhd

  • Description modified (diff)

comment:2 Changed 5 years ago by sebastian

  • Keywords goodfirstbug added
  • Priority changed from Unknown to P4
  • Ready set

comment:3 Changed 5 years ago by trev

  • Owner set to trev

comment:4 Changed 5 years ago by trev

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:6 Changed 5 years ago by tschuster

I can't use from the main directory anymore. Is that on purpose?

  File "/home/tom/projects/adblockplus/buildtools/", line 341, in createBuild
    files = Files(getPackageFiles(params), getIgnoredFiles(params),
  File "/home/tom/projects/adblockplus/buildtools/", line 58, in getPackageFiles
    for file in os.listdir(baseDir):
OSError: [Errno 2] No such file or directory: ''

comment:7 Changed 5 years ago by trev

  • Resolution fixed deleted
  • Status changed from closed to reopened

Indeed - I always call the script as ./ If you call it as then BASE_DIR will be empty.

comment:8 Changed 5 years ago by trev

  • Review URL(s) modified (diff)
  • Status changed from reopened to reviewing
Note: See TracTickets for help on using tickets.