Merge lp:~bellini666/stoq-bzr/keep_rc_settings into lp:stoq-bzr

Proposed by Thiago Bellini
Status: Merged
Merged at revision: 20
Proposed branch: lp:~bellini666/stoq-bzr/keep_rc_settings
Merge into: lp:stoq-bzr
Diff against target: 0 lines
To merge this branch: bzr merge lp:~bellini666/stoq-bzr/keep_rc_settings
Reviewer Review Type Date Requested Status
Ronaldo Maia Approve
Review via email: mp+65054@code.launchpad.net

Description of the change

Changes to keep rc configs (aliases and other things that are not exported to env) without breaking the stoq paths.

To post a comment you must log in.
19. By Thiago Bellini

Little correction. This syntax don't work on python2.6.

Revision history for this message
Ronaldo Maia (romaia) wrote :

21 + # FIXME: Find a way to get the directory name for stoq plugin,
22 + # to avoid hardcoding 'stoq' bellow.
23 + rcfile = os.path.join(plugin.get_user_plugin_path(), 'stoq',
24 + self.RCFILE)

Para esse fixme:

dir_name = os.path.dirname(os.path.abspath(__file__))
rcfile = os.path.join(dir_name, self.RCFILE)

Tirando isso, por mim está bom.

review: Approve
20. By Thiago Bellini

A little correction pointed by romaia to get the script path without hardcoding.

Preview Diff

Empty

Subscribers

People subscribed via source and target branches