Ticket #29 (closed bug: fixed)

Opened 9 years ago

Last modified 9 years ago

nagare-admin batch and imports

Reported by: bertrand.croq Owned by: apoirier
Priority: major Component: nagare-admin
Version: 0.1.0 Keywords: batch
Cc:

Description

Scripts called using nagare-admin batch thescript.py sometime fail with NameError: global name '...' is not defined.

Failing code:

from nagare import examples
print examples
def tst():
  print examples # <-- fails here
tst()

Not failing code:

from nagare import database
print database
def tst():
  print database
tst()

Change History

comment:1 Changed 9 years ago by apoirier

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.