Created
May 1, 2013 13:56
-
-
Save sirn/5495399 to your computer and use it in GitHub Desktop.
Reduced use case to demonstrate that "%" in path is causing vagrant-vmware-fusion to fail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .vagrant/ | |
| *.pyc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [test] | |
| tmp.dir = %(here)s/tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import ConfigParser | |
| import os | |
| def main(): | |
| config = ConfigParser.SafeConfigParser() | |
| config.read('demo.ini') | |
| print config.get('test', 'tmp.dir', False, {'here': os.getcwd()}) | |
| if __name__ == '__main__': | |
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vagrant.configure("2") do |config| | |
| config.vm.box = "precise64" | |
| config.vm.provision :shell, :inline => "cd /vagrant; python run.py" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment