Browse files

ftp : searching credentials in an external file instead of living the…

…m there in dev mode to not forget to remove them at each commit.
  • Loading branch information...
metadirective committed Jan 16, 2014
1 parent 24c0471 commit 72b6b95efed9549e28c5120894fb85b75d0da621
Showing with 8 additions and 2 deletions.
  1. +8 −2
@@ -27,7 +27,7 @@
## Python import (base Python 2.4)
-import sys,os,time,datetime,tarfile,ConfigParser,threading,shutil,gettext,zipfile
+import sys,os,time,datetime,tarfile,ConfigParser,threading,shutil,gettext,zipfile,pickle
import subprocess, socket, winsound, traceback, webbrowser
from thread import start_new_thread, exit
from urllib2 import urlopen
@@ -199,7 +199,13 @@
"For live session: indicates if we have an open FTP connection to send live screenshots"
"Standalone preview player ( realplayer or browser), used in standalone mode only"
-if 1:# in case no server informations found in the configuration file
+forBuild = False
+# For publishing and live screenshots
+if forBuild == False:# in case no server informations found in the configuration file
+ passFtp=pickle.load(open("pass.p","rb"))
+ ftpLogin=passFtp["ftpLogin"]
+ ftpPass=passFtp["ftpPass"]
+if forBuild == True:
"FTP login for publishing and live screenshots"

0 comments on commit 72b6b95

Please sign in to comment.