Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#3148 closed enhancement (fixed)

[PATCH] Create main() function so script can be called from python modules

Reported by: alberto@… Owned by: pacopablo
Priority: normal Component: SqliteToPgScript
Severity: normal Keywords:
Cc: Trac Release: 0.10


Attached is a patch that creates a main() function entry point so the script can be easily called programatically from other python modules.

It also "fixes" some accesses to global variable "opts" instead of instance attribute inside MigrateTable which have surfaced when opts is no longer declared in module scope.


Attachments (1)

main_ep.diff (1.8 KB) - added by alberto@… 9 years ago.
The patch

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by alberto@…

The patch

comment:1 Changed 9 years ago by pacopablo

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

(In [3826])

  • Accepted patch to create a main() function that is easily callable from other python modules. Thanks to alberto Closes #3148
  • Accepted patch to check for presence of arguments before checking value. Closes #3138

Add Comment

Modify Ticket

as closed The owner will remain pacopablo.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.