~ed.so/duplicity/gdocs.pydrive

« back to all changes in this revision

Viewing changes to bin/duplicity

  • Committer: Kenneth Loafman
  • Date: 2015-03-09 18:50:58 UTC
  • Revision ID: kenneth@loafman.com-20150309185058-ktisv2349syunzsl
* Fix for --pydevd debug environment and location under Eclipse.
* Fix for bug where scp was actually working as scp and not working with
  rsync.net because of using extraneous test command in restricted shell.
  Was trying "test -d 'foo' || mkdir -p 'foo'", now only "mkdir -p foo".

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
from datetime import datetime
42
42
from lockfile import FileLock
43
43
 
 
44
if '--pydevd' in sys.argv:
 
45
    # The following is for starting remote debugging in Eclipse with Pydev.
 
46
    # Adjust the path to your location and version of Eclipse and Pydev.
 
47
    pysrc = "/opt/eclipse/plugins/org.python.pydev_3.9.2.201502050007/pysrc"
 
48
    sys.path.append(pysrc)
 
49
    import pydevd  # @UnresolvedImport
 
50
    pydevd.settrace()
 
51
    # In a dev environment the path is screwed so fix it.
 
52
    base = sys.path.pop(0)
 
53
    base = base.split(os.path.sep)[:-1]
 
54
    base = os.path.sep.join(base)
 
55
    sys.path.insert(0, base)
 
56
# end remote debugger startup
 
57
 
44
58
from duplicity import log
45
59
log.setup()
46
60
 
1360
1374
 
1361
1375
 
1362
1376
def do_backup(action):
1363
 
    # The following is for starting remote debugging in Eclipse with Pydev.
1364
 
    # Adjust the path to your location and version of Eclipse and Pydev.
1365
 
    if globals.pydevd:
1366
 
        pysrc = "/opt/Aptana Studio 3/plugins/org.python.pydev.debug_2.2.4.2011111522/pysrc"
1367
 
        sys.path.append(pysrc)
1368
 
        import pydevd  # @UnresolvedImport
1369
 
        pydevd.settrace()
1370
 
    # end remote debugger startup
1371
 
 
1372
1377
    # set the current time strings again now that we have time separator
1373
1378
    if globals.current_time:
1374
1379
        dup_time.setcurtime(globals.current_time)