Skip to content

Instantly share code, notes, and snippets.

@sirn
Created May 1, 2013 13:56
Show Gist options
  • Select an option

  • Save sirn/5495399 to your computer and use it in GitHub Desktop.

Select an option

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.
.vagrant/
*.pyc
[test]
tmp.dir = %(here)s/tmp
#!/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()
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