[PYTHON]share variables betwin 2 scripts menu

User Tag List

Results 1 to 1 of 1
  1. #1
    karapidiola's Avatar Active Member
    Reputation
    51
    Join Date
    Mar 2008
    Posts
    166
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PYTHON]share variables betwin 2 scripts

    all you need is the memcache module!

    for ubuntu users do the following
    Code:
    sudo apt-get install python-memcache
    else u can download it seach the web!!

    next lets say we got script1.py and script2.py

    script1.py:
    Code:
    from memcache import *
    
    #here i want to get a value from script2
    
    hAndle = Client(['127.0.0.1:11211'], debug=0)
    print hAndle.get('Value')
    script2.py
    Code:
    from memcache import *
    
    #here i want to get a value from script2
    
    hAndle = Client(['127.0.0.1:11211'], debug=0)
    hAndle.set('Value','test string')
    you can use the same module to share variables over threads or multyprocess!!

    [PYTHON]share variables betwin 2 scripts

Similar Threads

  1. [Share] Lua Script Generator! Bosses and More [EPIC]
    By MisterEMU in forum WoW EMU Programs
    Replies: 23
    Last Post: 11-10-2008, 02:30 AM
  2. [Release/Share]Over 1k Blizzlike Scripts
    By Pedregon in forum WoW EMU General Releases
    Replies: 4
    Last Post: 08-08-2008, 02:27 PM
  3. [share] mini-tut on gossip scripts lua
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-29-2008, 05:11 AM
  4. [Share] Download Youtube Videos Script
    By latruwski in forum Programming
    Replies: 0
    Last Post: 03-14-2008, 06:53 PM
All times are GMT -5. The time now is 02:38 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search