mirror of
https://github.com/jwinterm/cryptonoteRPCwalletGUI.git
synced 2026-10-17 05:51:33 +02:00
16 lines
796 B
Python
16 lines
796 B
Python
import os
|
|
import subprocess
|
|
|
|
def bitmonerodloader():
|
|
"""Start bitmonerod and/or simplewallet and collect wallet name and address"""
|
|
#Start bitmonerod daemon if not running
|
|
if os.name == 'nt':
|
|
daemonproc = subprocess.Popen("start bitmonerod --rpc-bind-port 18081",
|
|
shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
|
stderr=subprocess.STDOUT)
|
|
elif os.name == 'posix':
|
|
daemonproc = subprocess.Popen(['./bitmonerod --rpc-bind-port 18081'],
|
|
creationflags=subprocess.CREATE_NEW_CONSOLE,
|
|
shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
|
stderr=subprocess.STDOUT)
|